pub struct IxDyn { /* private fields */ }Expand description
A dynamic-rank dimension whose number of axes is determined at runtime.
Implementations§
Trait Implementations§
Source§impl Dimension for IxDyn
impl Dimension for IxDyn
Source§type Smaller = IxDyn
type Smaller = IxDyn
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 = IxDyn
type Larger = IxDyn
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 IxDyn
impl StructuralPartialEq for IxDyn
Auto Trait Implementations§
impl Freeze for IxDyn
impl RefUnwindSafe for IxDyn
impl Send for IxDyn
impl Sync for IxDyn
impl Unpin for IxDyn
impl UnsafeUnpin for IxDyn
impl UnwindSafe for IxDyn
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