pub struct Backend<B> {
pub _backend: B,
}
Expand description
backend of tensor
this backend stores the pointer of the data memory
this backend is used when we free
or clone
the tensor
Fields§
§_backend: B
the backend of the tensor
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for Backend<B>where
B: Freeze,
impl<B> RefUnwindSafe for Backend<B>where
B: RefUnwindSafe,
impl<B> Send for Backend<B>where
B: Send,
impl<B> Sync for Backend<B>where
B: Sync,
impl<B> Unpin for Backend<B>where
B: Unpin,
impl<B> UnwindSafe for Backend<B>where
B: UnwindSafe,
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