pub struct Ix1 { /* private fields */ }Expand description
A fixed-rank dimension with 1 axes.
Implementations§
Trait Implementations§
Source§impl Dimension for Ix1
impl Dimension for Ix1
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 = Ix2
type Larger = Ix2
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 Ix1
impl StructuralPartialEq for Ix1
Auto Trait Implementations§
impl Freeze for Ix1
impl RefUnwindSafe for Ix1
impl Send for Ix1
impl Sync for Ix1
impl Unpin for Ix1
impl UnsafeUnpin for Ix1
impl UnwindSafe for Ix1
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