Expand description
Array layout, including rank, element order and storage format.
Implementations
sourceimpl<D: Dim, F: Format> Layout<D, F>
 
impl<D: Dim, F: Format> Layout<D, F>
sourcepub fn is_contiguous(self) -> bool
 
pub fn is_contiguous(self) -> bool
Returns true if the array strides are consistent with contiguous memory layout.
sourcepub fn is_uniformly_strided(self) -> bool
 
pub fn is_uniformly_strided(self) -> bool
Returns true if the array strides are consistent with uniformly strided memory layout.
sourcepub fn size(self, dim: usize) -> usize
 
pub fn size(self, dim: usize) -> usize
Returns the number of elements in the specified dimension.
Panics
Panics if the dimension is out of bounds.
Trait Implementations
sourceimpl<T, S: Shape, D: Dim<Shape = S>, F: Format> SpanIndex<T, Layout<D, F>> for S
 
impl<T, S: Shape, D: Dim<Shape = S>, F: Format> SpanIndex<T, Layout<D, F>> for S
type Output = T
type Output = T
Array element or subslice type.
sourceimpl<T, D: Dim, F: Uniform> SpanIndex<T, Layout<D, F>> for usize
 
impl<T, D: Dim, F: Uniform> SpanIndex<T, Layout<D, F>> for usize
type Output = T
type Output = T
Array element or subslice type.
impl<D: Dim, F: Format> Copy for Layout<D, F>
Auto Trait Implementations
impl<D, F> RefUnwindSafe for Layout<D, F>where
    <F as Format>::Mapping<D>: RefUnwindSafe,
impl<D, F> Send for Layout<D, F>where
    <F as Format>::Mapping<D>: Send,
impl<D, F> Sync for Layout<D, F>where
    <F as Format>::Mapping<D>: Sync,
impl<D, F> Unpin for Layout<D, F>where
    <F as Format>::Mapping<D>: Unpin,
impl<D, F> UnwindSafe for Layout<D, F>where
    <F as Format>::Mapping<D>: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more