pub struct StridedMapping<S: Shape> { /* private fields */ }Expand description
Strided layout mapping type.
Implementations§
Trait Implementations§
Source§impl<S: Shape> Clone for StridedMapping<S>
impl<S: Shape> Clone for StridedMapping<S>
Source§impl<S: Shape> Default for StridedMapping<S>
impl<S: Shape> Default for StridedMapping<S>
Source§impl<S: Shape> Mapping for StridedMapping<S>
impl<S: Shape> Mapping for StridedMapping<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<Dims<isize>: Copy> + Copy> Copy for StridedMapping<S>
impl<S: Eq + Shape> Eq for StridedMapping<S>
impl<S: Shape> StructuralPartialEq for StridedMapping<S>
Auto Trait Implementations§
impl<S> Freeze for StridedMapping<S>
impl<S> RefUnwindSafe for StridedMapping<S>
impl<S> Send for StridedMapping<S>
impl<S> Sync for StridedMapping<S>
impl<S> Unpin for StridedMapping<S>
impl<S> UnwindSafe for StridedMapping<S>
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