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