#[repr(C)]
pub struct ManagerContext<C> { pub ptr: Option<NonNull<*mut c_void>>, /* private fields */ }
Expand description

A typed ManagerContext type that is !Unpin i.e. pinnable for safety since it holds a pointer to the underlying DLTensor.

Fields

ptr: Option<NonNull<*mut c_void>>

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.