pub(crate) struct SplitProducer<'p, P, V, const INCL: bool = false> {
data: V,
separator: &'p P,
tail: usize,
}Expand description
Common producer for splitting on a predicate.
Fields§
§data: V§separator: &'p P§tail: usizeMarks the endpoint beyond which we’ve already found no separators.
Implementations§
Source§impl<'p, P, V> SplitProducer<'p, P, V>
impl<'p, P, V> SplitProducer<'p, P, V>
Source§impl<'p, P, V> SplitProducer<'p, P, V, true>
impl<'p, P, V> SplitProducer<'p, P, V, true>
Trait Implementations§
Source§impl<'p, P, V, const INCL: bool> UnindexedProducer for SplitProducer<'p, P, V, INCL>
impl<'p, P, V, const INCL: bool> UnindexedProducer for SplitProducer<'p, P, V, INCL>
Auto Trait Implementations§
impl<'p, P, V, const INCL: bool> Freeze for SplitProducer<'p, P, V, INCL>where
V: Freeze,
impl<'p, P, V, const INCL: bool> RefUnwindSafe for SplitProducer<'p, P, V, INCL>where
V: RefUnwindSafe,
P: RefUnwindSafe,
impl<'p, P, V, const INCL: bool> Send for SplitProducer<'p, P, V, INCL>
impl<'p, P, V, const INCL: bool> Sync for SplitProducer<'p, P, V, INCL>
impl<'p, P, V, const INCL: bool> Unpin for SplitProducer<'p, P, V, INCL>where
V: Unpin,
impl<'p, P, V, const INCL: bool> UnwindSafe for SplitProducer<'p, P, V, INCL>where
V: UnwindSafe,
P: RefUnwindSafe,
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
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