pub enum Selector {
At(usize),
Range {
start: usize,
len: usize,
step: isize,
},
All,
Indices {
layout: Layout,
positions: Table,
},
NewAxis,
}Expand description
One independent axis selector. Positions are zero-based and already normalized; a range can walk backwards. All keeps the whole axis, whatever its length. An index array replaces its axis by the axes of its layout. Its positions, a Table, lie within the axis or are Steps::FILL, which reads the caller’s fill. The code that builds an index array checks its positions, as index_positions and index_table do. NewAxis inserts a length-one axis without consuming an input axis.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Selector
impl !UnwindSafe for Selector
impl Forget for Selector
impl Freeze for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnsafeUnpin for Selector
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more