pub struct Shape16 { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl Shape for Shape16
impl Shape for Shape16
const DIMENSION: usize = 16usize
type VectorType = [usize; 16]
type DummyVectorType = [DummyIndex; 16]
fn zero(&self) -> Self::VectorType
fn len(&self) -> usize
fn shape(&self) -> &[usize]
fn offset(&self) -> &[usize]
fn dimension(&self) -> usize
fn dimension_of(_: &Self::VectorType) -> 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>
impl Copy for Shape16
Auto Trait Implementations§
impl Freeze for Shape16
impl RefUnwindSafe for Shape16
impl Send for Shape16
impl Sync for Shape16
impl Unpin for Shape16
impl UnwindSafe for Shape16
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