Struct rust_cuda::utils::ffi::DeviceAccessible

source ·
pub struct DeviceAccessible<T: PortableBitSemantics + TypeGraphLayout>(/* private fields */);

Trait Implementations§

source§

impl<T> ComputeTypeSet for DeviceAccessible<T>

§

type Output<__TypeSetRest: ExpandTypeSet> = <__TypeSetRest as ComputeSet>::Output<T>

Extend the set T into a (larger) set containing also the types this type links to. Read more
source§

impl<T: Debug + PortableBitSemantics + TypeGraphLayout> Debug for DeviceAccessible<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: PortableBitSemantics + TypeGraphLayout> Deref for DeviceAccessible<T>

Available on crate feature device only.
§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<T: PortableBitSemantics + TypeGraphLayout> DerefMut for DeviceAccessible<T>

Available on crate feature device only.
source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl<T: Copy + PortableBitSemantics + TypeGraphLayout> From<&T> for DeviceAccessible<RustToCudaWithPortableBitCopySemantics<T>>

Available on crate feature host only.
source§

fn from(value: &T) -> Self

Converts to this type from the input type.
source§

impl<T: CudaAsRust> From<T> for DeviceAccessible<T>

Available on crate feature host only.
source§

fn from(value: T) -> Self

Converts to this type from the input type.
source§

impl<T> TypeLayout for DeviceAccessible<T>

§

type Inhabited = <And<<T as TypeLayout>::Inhabited, Inhabited> 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<T> Freeze for DeviceAccessible<T>
where T: Freeze,

§

impl<T> PortableBitSemantics for DeviceAccessible<T>

§

impl<T> RefUnwindSafe for DeviceAccessible<T>
where T: RefUnwindSafe,

§

impl<T> Send for DeviceAccessible<T>
where T: Send,

§

impl<T> StackOnly for DeviceAccessible<T>
where T: StackOnly,

§

impl<T> Sync for DeviceAccessible<T>
where T: Sync,

§

impl<T> Unpin for DeviceAccessible<T>
where T: Unpin,

§

impl<T> UnwindSafe for DeviceAccessible<T>
where T: UnwindSafe,

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