pub struct Storage(/* private fields */);Expand description
Reference-counted, immutable byte storage shared by one or more
Tensor views.
Buffers allocated by Storage (from_slice,
zeroed) are 64-byte aligned. Buffers adopted from a
caller (from_vec) keep their original allocation and
carry no alignment guarantee.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Storage
impl RefUnwindSafe for Storage
impl Send for Storage
impl Sync for Storage
impl Unpin for Storage
impl UnsafeUnpin for Storage
impl UnwindSafe for Storage
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