Struct math::tensor::tensor_storage::TensorStorage
source · pub struct TensorStorage<Dtype> {
pub vec: Vec<Dtype>,
}
Expand description
Fields§
§vec: Vec<Dtype>
Trait Implementations§
source§impl<Dtype: Clone> Clone for TensorStorage<Dtype>
impl<Dtype: Clone> Clone for TensorStorage<Dtype>
source§fn clone(&self) -> TensorStorage<Dtype>
fn clone(&self) -> TensorStorage<Dtype>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<Dtype: Debug> Debug for TensorStorage<Dtype>
impl<Dtype: Debug> Debug for TensorStorage<Dtype>
source§impl<Dtype: PartialEq> PartialEq for TensorStorage<Dtype>
impl<Dtype: PartialEq> PartialEq for TensorStorage<Dtype>
source§fn eq(&self, other: &TensorStorage<Dtype>) -> bool
fn eq(&self, other: &TensorStorage<Dtype>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, Dtype> ToEphemeralView<'a, Dtype> for TensorStorage<Dtype>
impl<'a, Dtype> ToEphemeralView<'a, Dtype> for TensorStorage<Dtype>
fn as_shape<S: Into<TensorShape>>( &'a self, shape: S ) -> EphemeralView<'a, Dtype>
impl<Dtype: Eq> Eq for TensorStorage<Dtype>
impl<Dtype> StructuralEq for TensorStorage<Dtype>
impl<Dtype> StructuralPartialEq for TensorStorage<Dtype>
Auto Trait Implementations§
impl<Dtype> RefUnwindSafe for TensorStorage<Dtype>where
Dtype: RefUnwindSafe,
impl<Dtype> Send for TensorStorage<Dtype>where
Dtype: Send,
impl<Dtype> Sync for TensorStorage<Dtype>where
Dtype: Sync,
impl<Dtype> Unpin for TensorStorage<Dtype>where
Dtype: Unpin,
impl<Dtype> UnwindSafe for TensorStorage<Dtype>where
Dtype: 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