Struct rust_cuda::utils::ffi::DeviceConstRef
source · pub struct DeviceConstRef<'r, T: PortableBitSemantics + 'r> { /* private fields */ }
Trait Implementations§
source§impl<'r, T: PortableBitSemantics> AsRef<T> for DeviceConstRef<'r, T>
Available on crate feature device
only.
impl<'r, T: PortableBitSemantics> AsRef<T> for DeviceConstRef<'r, T>
Available on crate feature
device
only.source§impl<'r, T: PortableBitSemantics> Clone for DeviceConstRef<'r, T>
impl<'r, T: PortableBitSemantics> Clone for DeviceConstRef<'r, T>
source§impl<'r, T> ComputeTypeSet for DeviceConstRef<'r, T>where
T: ComputeTypeSet + PortableBitSemantics + 'r,
impl<'r, T> ComputeTypeSet for DeviceConstRef<'r, T>where
T: ComputeTypeSet + PortableBitSemantics + 'r,
§type Output<__TypeSetRest: ExpandTypeSet> = <<__TypeSetRest as ComputeSet>::Output<PhantomData<&'r T>> as ComputeSet>::Output<DeviceConstPointer<T>>
type Output<__TypeSetRest: ExpandTypeSet> = <<__TypeSetRest as ComputeSet>::Output<PhantomData<&'r T>> as ComputeSet>::Output<DeviceConstPointer<T>>
Extend the set
T
into a (larger) set containing also the types this
type links to. Read moresource§impl<'r, T> TypeLayout for DeviceConstRef<'r, T>where
T: TypeLayout + PortableBitSemantics + 'r,
impl<'r, T> TypeLayout for DeviceConstRef<'r, T>where
T: TypeLayout + PortableBitSemantics + 'r,
§type Inhabited = <And<<DeviceConstPointer<T> as TypeLayout>::Inhabited, <And<<PhantomData<&'r T> as TypeLayout>::Inhabited, Inhabited> as ComputeInhabited>::Output> as ComputeInhabited>::Output
type Inhabited = <And<<DeviceConstPointer<T> as TypeLayout>::Inhabited, <And<<PhantomData<&'r T> as TypeLayout>::Inhabited, Inhabited> as ComputeInhabited>::Output> as ComputeInhabited>::Output
Marker type for whether the type is
inhabited or
uninhabited.
The associated type must be either
inhabited::Inhabited
or inhabited::Uninhabited
.source§const TYPE_LAYOUT: TypeLayoutInfo<'static> = _
const TYPE_LAYOUT: TypeLayoutInfo<'static> = _
Shallow layout of the type.
impl<'r, T: PortableBitSemantics> Copy for DeviceConstRef<'r, T>
Auto Trait Implementations§
impl<'r, T> Freeze for DeviceConstRef<'r, T>
impl<'r, T> PortableBitSemantics for DeviceConstRef<'r, T>
impl<'r, T> RefUnwindSafe for DeviceConstRef<'r, T>where
T: RefUnwindSafe,
impl<'r, T> !Send for DeviceConstRef<'r, T>
impl<'r, T> !StackOnly for DeviceConstRef<'r, T>
impl<'r, T> !Sync for DeviceConstRef<'r, T>
impl<'r, T> Unpin for DeviceConstRef<'r, T>
impl<'r, T> UnwindSafe for DeviceConstRef<'r, T>where
T: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> ExtractDiscriminant for T
impl<T> ExtractDiscriminant for T
§type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
The type of the discriminant, which must satisfy the trait bounds
required by
core::mem::Discriminant
. Read moresource§impl<T> TypeGraphLayout for Twhere
T: TypeLayout + ComputeTypeSet,
impl<T> TypeGraphLayout for Twhere
T: TypeLayout + ComputeTypeSet,
source§const TYPE_GRAPH: TypeLayoutGraph<'static> = _
const TYPE_GRAPH: TypeLayoutGraph<'static> = _
Shallow layout of the type.