pub struct DynShape { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl Shape for DynShape
impl Shape for DynShape
const DIMENSION: usize = 4_294_967_295usize
type VectorType = Vec<usize>
type DummyVectorType = Vec<DummyIndex>
fn zero(&self) -> Self::VectorType
fn len(&self) -> usize
fn dimension(&self) -> usize
fn dimension_of(vector: &Self::VectorType) -> usize
fn shape(&self) -> &[usize]
fn offset(&self) -> &[usize]
fn len_of_dimension( &self, dimension: usize, ) -> Result<usize, DimensionMismatchingError>
fn offset_of_dimension( &self, dimension: usize, ) -> Result<usize, DimensionMismatchingError>
fn index( &self, vector: &Self::VectorType, ) -> Result<usize, IndexCalculationError>
fn vector(&self, index: usize) -> Self::VectorType
fn next_vector(&self, vector: &mut Self::VectorType) -> bool
fn actual_index(&self, dimension: usize, index: isize) -> Option<usize>
Auto Trait Implementations§
impl Freeze for DynShape
impl RefUnwindSafe for DynShape
impl Send for DynShape
impl Sync for DynShape
impl Unpin for DynShape
impl UnwindSafe for DynShape
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