pub struct DenseMapping<S: Shape> { /* private fields */ }Expand description
Dense layout mapping type.
Implementations§
Trait Implementations§
Source§impl<S: Shape> Clone for DenseMapping<S>
impl<S: Shape> Clone for DenseMapping<S>
Source§impl<S: Default + Shape> Default for DenseMapping<S>
impl<S: Default + Shape> Default for DenseMapping<S>
Source§fn default() -> DenseMapping<S>
fn default() -> DenseMapping<S>
Returns the “default value” for a type. Read more
Source§impl<S: Shape> Mapping for DenseMapping<S>
impl<S: Shape> Mapping for DenseMapping<S>
Source§fn is_contiguous(&self) -> bool
fn is_contiguous(&self) -> bool
Returns
true if the array strides are consistent with contiguous memory layout.Source§fn stride(&self, index: usize) -> isize
fn stride(&self, index: usize) -> isize
Returns the distance between elements in the specified dimension. Read more
Source§fn dim(&self, index: usize) -> usize
fn dim(&self, index: usize) -> usize
Returns the number of elements in the specified dimension. Read more
impl<S: Shape + Copy> Copy for DenseMapping<S>
impl<S: Eq + Shape> Eq for DenseMapping<S>
impl<S: Shape> StructuralPartialEq for DenseMapping<S>
Auto Trait Implementations§
impl<S> Freeze for DenseMapping<S>where
S: Freeze,
impl<S> RefUnwindSafe for DenseMapping<S>where
S: RefUnwindSafe,
impl<S> Send for DenseMapping<S>
impl<S> Sync for DenseMapping<S>
impl<S> Unpin for DenseMapping<S>where
S: Unpin,
impl<S> UnwindSafe for DenseMapping<S>where
S: 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