pub struct Stepped<R> { /* private fields */ }Expand description
A range with a step, made by Step::step: the range selects positions and the step
walks them, backwards when negative (ndarray’s rule). (0..6).step(2) is Python’s
0:6:2, (..).step(-1) is ::-1, (1..4).step(-1) is 3:0:-1 (positions 3, 2, 1).
Trait Implementations§
impl ArrayIndex for Stepped<Range<i32>>
impl ArrayIndex for Stepped<Range<usize>>
impl ArrayIndex for Stepped<RangeFrom<i32>>
impl ArrayIndex for Stepped<RangeFrom<usize>>
impl ArrayIndex for Stepped<RangeTo<i32>>
impl ArrayIndex for Stepped<RangeTo<usize>>
impl ArrayIndex for Stepped<RangeInclusive<i32>>
impl ArrayIndex for Stepped<RangeInclusive<usize>>
impl ArrayIndex for Stepped<RangeToInclusive<i32>>
impl ArrayIndex for Stepped<RangeToInclusive<usize>>
impl ArrayIndex for Stepped<RangeFull>
impl<R: Eq> Eq for Stepped<R>
impl<R: PartialEq> StructuralPartialEq for Stepped<R>
Auto Trait Implementations§
impl<R> Freeze for Stepped<R>where
R: Freeze,
impl<R> RefUnwindSafe for Stepped<R>where
R: RefUnwindSafe,
impl<R> Send for Stepped<R>where
R: Send,
impl<R> Sync for Stepped<R>where
R: Sync,
impl<R> Unpin for Stepped<R>where
R: Unpin,
impl<R> UnsafeUnpin for Stepped<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for Stepped<R>where
R: UnwindSafe,
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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