Struct lender::SkipWhile

source ·
pub struct SkipWhile<L, P> { /* private fields */ }

Trait Implementations§

source§

impl<L: Clone, P: Clone> Clone for SkipWhile<L, P>

source§

fn clone(&self) -> SkipWhile<L, P>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<L: Debug, P> Debug for SkipWhile<L, P>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<L, P> Lender for SkipWhile<L, P>
where P: FnMut(&Lend<'_, L>) -> bool, L: Lender,

source§

fn next(&mut self) -> Option<Lend<'_, Self>>

Yield the next lend, if any, of the lender. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Get the estimated minimum and maximum length of the lender. Use .len() for the exact length if the lender implements ExactSizeLender. Read more
source§

fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R
where Self: Sized, F: FnMut(B, Lend<'_, Self>) -> R, R: Try<Output = B>,

Documentation is incomplete. Refer to Iterator::try_fold for more information
source§

fn fold<B, F>(self, init: B, f: F) -> B
where Self: Sized, F: FnMut(B, Lend<'_, Self>) -> B,

Documentation is incomplete. Refer to Iterator::fold for more information
source§

fn next_chunk(&mut self, chunk_size: usize) -> Chunk<'_, Self>
where Self: Sized,

Take the next len lends of the lender with temporary lender Chunk. This is the quivalent of cloning the lender and calling take(len) on it. Read more
source§

fn count(self) -> usize
where Self: Sized,

Count the number of lends in the lender by consuming it. Read more
source§

fn last<'call>(&'call mut self) -> Option<Lend<'call, Self>>
where Self: Sized,

Get the last lend of the lender, if any, by consuming it. Read more
source§

fn advance_by(&mut self, n: usize) -> Result<(), NonZeroUsize>

Advance the lender by n lends. If the lender does not have enough lends, return the number of lends left. Read more
source§

fn nth(&mut self, n: usize) -> Option<Lend<'_, Self>>

Yield the nth lend of the lender, if any, by consuming it. If the lender does not have enough lends, returns None. Read more
source§

fn step_by(self, step: usize) -> StepBy<Self>
where Self: Sized,

Skip step - 1 lends between each lend of the lender. Read more
source§

fn chain<U>(self, other: U) -> Chain<Self, <U as IntoLender>::Lender>
where Self: Sized, for<'all> U: Lending<'all, Lend = Lend<'all, Self>> + IntoLender,

Chain the lender with another lender of the same type. Read more
source§

fn zip<U: IntoLender>(self, other: U) -> Zip<Self, <U as IntoLender>::Lender>
where Self: Sized,

Zip the lender with another lender of the same or different type. Read more
source§

fn intersperse_with<'call, G>( self, separator: G ) -> IntersperseWith<'call, Self, G>
where Self: Sized, G: FnMut() -> Lend<'call, Self>,

Intersperse each lend of this lender with the seperator produced by the given function. Read more
source§

fn map<F>(self, f: F) -> Map<Self, F>
where Self: Sized, F: for<'all> FnMutHKA<'all, Lend<'all, Self>>,

Map each lend of this lender using the given function. Read more
source§

fn map_into_iter<O, F: FnMut(Lend<'_, Self>) -> O>( self, f: F ) -> MapIntoIter<Self, O, F>
where Self: Sized,

Map each lend of this lender into an owned value using the given function. Read more
source§

fn for_each<F>(self, f: F)
where Self: Sized, F: FnMut(Lend<'_, Self>),

Call the given function with each lend of this lender. Read more
source§

fn filter<P>(self, predicate: P) -> Filter<Self, P>
where Self: Sized, P: FnMut(&Lend<'_, Self>) -> bool,

Filter this lender using the given predicate. Read more
source§

fn filter_map<F>(self, f: F) -> FilterMap<Self, F>
where Self: Sized, F: for<'all> FnMutHKAOpt<'all, Lend<'all, Self>>,

Filter and map this lender using the given function. Read more
source§

fn enumerate(self) -> Enumerate<Self>
where Self: Sized,

Enumerate this lender. Each lend is paired with its zero-based index. Read more
source§

fn peekable<'call>(self) -> Peekable<'call, Self>
where Self: Sized,

Make this lender peekable, so that it is possible to peek at the next lend without consuming it. Read more
source§

fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>
where Self: Sized, P: FnMut(&Lend<'_, Self>) -> bool,

Skip the first contiguous sequence lends of this lender that satisfy the given predicate. Read more
source§

fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
where Self: Sized, P: FnMut(&Lend<'_, Self>) -> bool,

Take the first contiguous sequence lends of this lender that satisfy the given predicate. Read more
source§

fn map_while<P>(self, predicate: P) -> MapWhile<Self, P>
where Self: Sized, P: for<'all> FnMutHKAOpt<'all, Lend<'all, Self>>,

Map this lender using the given function while it returns Some. Read more
source§

fn skip(self, n: usize) -> Skip<Self>
where Self: Sized,

Skip the first n lends of this lender. Read more
source§

fn take(self, n: usize) -> Take<Self>
where Self: Sized,

Take the first n lends of this lender. Read more
source§

fn scan<St, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>
where Self: Sized, F: for<'all> FnMutHKAOpt<'all, (&'all mut St, Lend<'all, Self>)>,

Documentation is incomplete. Refer to Iterator::scan for more information.
source§

fn flat_map<'call, F>(self, f: F) -> FlatMap<'call, Self, F>
where Self: Sized, F: for<'all> FnMutHKA<'all, Lend<'all, Self>>, for<'all> <F as FnMutHKA<'all, Lend<'all, Self>>>::B: IntoLender,

Documentation is incomplete. Refer to Iterator::flat_map for more information
source§

fn fuse(self) -> Fuse<Self>
where Self: Sized,

Documentation is incomplete. Refer to Iterator::fuse for more information
source§

fn inspect<F>(self, f: F) -> Inspect<Self, F>
where Self: Sized, F: FnMut(&Lend<'_, Self>),

Documentation is incomplete. Refer to Iterator::inspect for more information
source§

fn mutate<F>(self, f: F) -> Mutate<Self, F>
where Self: Sized, F: FnMut(&mut Lend<'_, Self>),

Mutate each lend with the given function.
source§

fn by_ref(&mut self) -> &mut Self
where Self: Sized,

Documentation is incomplete. Refer to Iterator::by_ref for more information
source§

fn collect<B>(self) -> B
where Self: Sized, B: FromLender<Self>,

Documentation is incomplete. Refer to Iterator::collect for more information
source§

fn collect_into<E>(self, collection: &mut E) -> &mut E
where Self: Sized, E: ExtendLender<Self>,

Documentation is incomplete. Refer to Iterator::collect_into for more information
source§

fn partition<A, E, F>(self, f: F) -> (E, E)
where Self: Sized, E: Default + ExtendLender<Self>, F: FnMut(&Lend<'_, Self>) -> bool,

Documentation is incomplete. Refer to Iterator::partition for more information
source§

fn is_partitioned<P>(self, predicate: P) -> bool
where Self: Sized, P: FnMut(Lend<'_, Self>) -> bool,

Documentation is incomplete. Refer to Iterator::is_partitioned for more information
source§

fn try_for_each<F, R>(&mut self, f: F) -> R
where Self: Sized, F: FnMut(Lend<'_, Self>) -> R, R: Try<Output = ()>,

Documentation is incomplete. Refer to Iterator::try_for_each for more information
source§

fn all<F>(&mut self, f: F) -> bool
where Self: Sized, F: FnMut(Lend<'_, Self>) -> bool,

Documentation is incomplete. Refer to Iterator::all for more information
source§

fn any<F>(&mut self, f: F) -> bool
where Self: Sized, F: FnMut(Lend<'_, Self>) -> bool,

Documentation is incomplete. Refer to Iterator::any for more information
source§

fn find<P>(&mut self, predicate: P) -> Option<Lend<'_, Self>>
where Self: Sized, P: FnMut(&Lend<'_, Self>) -> bool,

Documentation is incomplete. Refer to Iterator::find for more information
source§

fn find_map<'a, F>( &'a mut self, f: F ) -> Option<<F as FnMutHKAOpt<'a, Lend<'a, Self>>>::B>
where Self: Sized, F: for<'all> FnMutHKAOpt<'all, Lend<'all, Self>>,

Documentation is incomplete. Refer to Iterator::find_map for more information
source§

fn try_find<F, R>( &mut self, f: F ) -> <<R as Try>::Residual as Residual<Option<Lend<'_, Self>>>>::TryType
where Self: Sized, F: FnMut(&Lend<'_, Self>) -> R, R: Try<Output = bool>, for<'all> R::Residual: Residual<Option<Lend<'all, Self>>>,

Documentation is incomplete. Refer to Iterator::try_find for more information
source§

fn position<P>(&mut self, predicate: P) -> Option<usize>
where Self: Sized, P: FnMut(Lend<'_, Self>) -> bool,

Documentation is incomplete. Refer to Iterator::position for more information
source§

fn copied<T>(self) -> Copied<Self>
where Self: Sized + for<'all> Lending<'all, Lend = &'all T>, T: Copy,

Documentation is incomplete. Refer to Iterator::copied for more information. Read more
source§

fn cloned<T>(self) -> Cloned<Self>
where Self: Sized + for<'all> Lending<'all, Lend = &'all T>, T: Clone,

Documentation is incomplete. Refer to Iterator::cloned for more information. Read more
source§

fn sum<S>(self) -> S
where Self: Sized, S: SumLender<Self>,

Documentation is incomplete. Refer to Iterator::sum for more information
source§

fn product<P>(self) -> P
where Self: Sized, P: ProductLender<Self>,

Documentation is incomplete. Refer to Iterator::product for more information
source§

fn cmp_by<L, F>(self, other: L, cmp: F) -> Ordering
where Self: Sized, L: IntoLender, F: for<'all> FnMut(Lend<'all, Self>, Lend<'all, L::Lender>) -> Ordering,

Documentation is incomplete. Refer to Iterator::cmp_by for more information
source§

fn partial_cmp<L>(self, other: L) -> Option<Ordering>
where L: IntoLender, for<'all> Lend<'all, Self>: PartialOrd<Lend<'all, L::Lender>>, Self: Sized,

Documentation is incomplete. Refer to Iterator::partial_cmp for more information
source§

fn partial_cmp_by<L, F>(self, other: L, partial_cmp: F) -> Option<Ordering>
where Self: Sized, L: IntoLender, F: for<'all> FnMut(Lend<'all, Self>, Lend<'all, L::Lender>) -> Option<Ordering>,

Documentation is incomplete. Refer to Iterator::partial_cmp_by for more information
source§

fn eq<L>(self, other: L) -> bool
where L: IntoLender, for<'all> Lend<'all, Self>: PartialEq<Lend<'all, L::Lender>>, Self: Sized,

Documentation is incomplete. Refer to Iterator::eq for more information
source§

fn eq_by<L, F>(self, other: L, eq: F) -> bool
where Self: Sized, L: IntoLender, F: for<'all> FnMut(Lend<'all, Self>, Lend<'all, L::Lender>) -> bool,

Documentation is incomplete. Refer to Iterator::eq_by for more information
source§

fn ne<L>(self, other: L) -> bool
where L: IntoLender, for<'all> Lend<'all, Self>: PartialEq<Lend<'all, L::Lender>>, Self: Sized,

Documentation is incomplete. Refer to Iterator::ne for more information
source§

fn lt<L>(self, other: L) -> bool
where L: IntoLender, for<'all> Lend<'all, Self>: PartialOrd<Lend<'all, L::Lender>>, Self: Sized,

Documentation is incomplete. Refer to Iterator::lt for more information
source§

fn le<L>(self, other: L) -> bool
where L: IntoLender, for<'all> Lend<'all, Self>: PartialOrd<Lend<'all, L::Lender>>, Self: Sized,

Documentation is incomplete. Refer to Iterator::le for more information
source§

fn gt<L>(self, other: L) -> bool
where L: IntoLender, for<'all> Lend<'all, Self>: PartialOrd<Lend<'all, L::Lender>>, Self: Sized,

Documentation is incomplete. Refer to Iterator::gt for more information
source§

fn ge<L>(self, other: L) -> bool
where L: IntoLender, for<'all> Lend<'all, Self>: PartialOrd<Lend<'all, L::Lender>>, Self: Sized,

Documentation is incomplete. Refer to Iterator::ge for more information
source§

fn is_sorted_by_key<F, K>(self, f: F) -> bool
where Self: Sized, F: FnMut(Lend<'_, Self>) -> K, K: PartialOrd,

Documentation is incomplete. Refer to Iterator::is_sorted_by_key for more information
source§

fn iter<'this>(self) -> Iter<'this, Self>
where Self: Sized + 'this, for<'all> Lend<'all, Self>: 'this,

Turn this lender into an Iterator where it has already fulfilled the requirements of the Iterator trait.
source§

impl<'lend, L, P> Lending<'lend> for SkipWhile<L, P>
where P: FnMut(&Lend<'lend, L>) -> bool, L: Lender,

§

type Lend = <L as Lending<'lend>>::Lend

The type being lent.
source§

impl<L, P> FusedLender for SkipWhile<L, P>
where P: FnMut(&Lend<'_, L>) -> bool, L: FusedLender,

Auto Trait Implementations§

§

impl<L, P> RefUnwindSafe for SkipWhile<L, P>

§

impl<L, P> Send for SkipWhile<L, P>
where L: Send, P: Send,

§

impl<L, P> Sync for SkipWhile<L, P>
where L: Sync, P: Sync,

§

impl<L, P> Unpin for SkipWhile<L, P>
where L: Unpin, P: Unpin,

§

impl<L, P> UnwindSafe for SkipWhile<L, P>
where L: UnwindSafe, P: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<L> IntoLender for L
where L: Lender,

§

type Lender = L

source§

fn into_lender(self) -> L

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.