pub struct HurrayTensorContext { /* private fields */ }Expand description
Opaque handle to a capsule’s tensor context: descriptor bytes, ABI version, and an owner reference.
Like every other handle in this ABI, this struct is not #[repr(C)]; its
layout is an implementation detail and callers MUST treat it as a black-box
pointer. Publishing the layout would buy nothing — a caller holding a capsule
already links this library to read its buffer list — and would freeze the
layout for the life of the major version (ADR-034 § 2).
Trait Implementations§
impl Send for HurrayTensorContext
Auto Trait Implementations§
impl !Sync for HurrayTensorContext
impl Freeze for HurrayTensorContext
impl RefUnwindSafe for HurrayTensorContext
impl Unpin for HurrayTensorContext
impl UnsafeUnpin for HurrayTensorContext
impl UnwindSafe for HurrayTensorContext
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