Enum jens::IteratorLocation
source · pub enum IteratorLocation {
First,
Nth(usize),
Last,
Only,
}
Expand description
When mapping over an iterable, this returns the location of the current iteration
Variants
First
This item is the first item in the iterable
Nth(usize)
This item is not the first or last item, but the nth item
Last
This item is the last in the iterable
Only
This item is the only item in the iterable (ie, the first AND last)
Auto Trait Implementations
impl RefUnwindSafe for IteratorLocation
impl Send for IteratorLocation
impl Sync for IteratorLocation
impl Unpin for IteratorLocation
impl UnwindSafe for IteratorLocation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more