pub struct Ix0;Expand description
A zero-dimensional (scalar) dimension.
Trait Implementations§
Source§impl Dimension for Ix0
impl Dimension for Ix0
Source§type Smaller = Ix0
type Smaller = Ix0
Dimension type produced by removing one axis (#349). Mirrors
ndarray’s
RemoveAxis::Smaller. Used to express the rank of
index_axis and remove_axis results at the type level so
Array<T, Ix2>::index_axis(...) returns ArrayView<T, Ix1>
instead of ArrayView<T, IxDyn>. Read moreSource§type Larger = Ix1
type Larger = Ix1
Dimension type produced by inserting one axis (#349). Mirrors
ndarray’s
Larger. Used by insert_axis to preserve compile-
time rank. Read moreSource§fn as_slice_mut(&mut self) -> &mut [usize]
fn as_slice_mut(&mut self) -> &mut [usize]
Return the shape as a mutable slice.
impl Eq for Ix0
impl StructuralPartialEq for Ix0
Auto Trait Implementations§
impl Freeze for Ix0
impl RefUnwindSafe for Ix0
impl Send for Ix0
impl Sync for Ix0
impl Unpin for Ix0
impl UnsafeUnpin for Ix0
impl UnwindSafe for Ix0
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