pub enum Order {
RowMajor,
ColumnMajor,
}
Expand description
Enum to indicate the underlying memory order of the NdSlice
or NdSliceMut
.
In row-major order, the last dimension is contiguous. In column-major order, the first dimension is contiguous. Read more: https://en.wikipedia.org/wiki/Row-_and_column-major_order
Variants§
RowMajor
In row-major order, the last dimension is contiguous. Read more: https://en.wikipedia.org/wiki/Row-_and_column-major_order
ColumnMajor
In column-major order, the first dimension is contiguous. Read more: https://en.wikipedia.org/wiki/Row-_and_column-major_order
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnwindSafe for Order
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