Struct rust_cuda::utils::ffi::DeviceOwnedRef

source ·
pub struct DeviceOwnedRef<'r, T: PortableBitSemantics> { /* private fields */ }

Trait Implementations§

source§

impl<'r, T: PortableBitSemantics> AsMut<T> for DeviceOwnedRef<'r, T>

Available on crate feature device only.
source§

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

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

impl<'r, T: PortableBitSemantics> AsRef<T> for DeviceOwnedRef<'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> ComputeTypeSet for DeviceOwnedRef<'r, T>

§

type Output<__TypeSetRest: ExpandTypeSet> = <<<__TypeSetRest as ComputeSet>::Output<PhantomData<T>> as ComputeSet>::Output<PhantomData<&'r mut ()>> as ComputeSet>::Output<DeviceOwnedPointer<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 DeviceOwnedRef<'r, T>

§

type Inhabited = <And<<DeviceOwnedPointer<T> as TypeLayout>::Inhabited, <And<<PhantomData<&'r mut ()> as TypeLayout>::Inhabited, <And<<PhantomData<T> as TypeLayout>::Inhabited, Inhabited> as ComputeInhabited>::Output> 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.

Auto Trait Implementations§

§

impl<'r, T> Freeze for DeviceOwnedRef<'r, T>

§

impl<'r, T> PortableBitSemantics for DeviceOwnedRef<'r, T>

§

impl<'r, T> RefUnwindSafe for DeviceOwnedRef<'r, T>
where T: RefUnwindSafe,

§

impl<'r, T> !Send for DeviceOwnedRef<'r, T>

§

impl<'r, T> !StackOnly for DeviceOwnedRef<'r, T>

§

impl<'r, T> !Sync for DeviceOwnedRef<'r, T>

§

impl<'r, T> Unpin for DeviceOwnedRef<'r, T>
where T: Unpin,

§

impl<'r, T> !UnwindSafe for DeviceOwnedRef<'r, T>

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> 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, 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