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.
source§

fn as_ref(&self) -> &T

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<'r, T: PortableBitSemantics> Clone for DeviceConstRef<'r, T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'r, T> ComputeTypeSet for DeviceConstRef<'r, 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 more
source§

impl<'r, T> TypeLayout for DeviceConstRef<'r, T>

§

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> = _

Shallow layout of the type.
source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> ExtractDiscriminant for T

§

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 more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> TypeGraphLayout for T

source§

const TYPE_GRAPH: TypeLayoutGraph<'static> = _

Shallow layout of the type.
§

impl<T> Erased for T