Struct TakeWhileMN
pub struct TakeWhileMN<F, E> { /* private fields */ }
Parser implementation for [take_while_m_n]
Trait Implementations
impl<I, Error: ParseError<I>, F> Parser<I> for TakeWhileMN<F, Error>
where
I: Input,
F: Fn(<I as Input>::Item) -> bool,
type Output = I;type Error = Error;fn process<OM: OutputMode>(&mut self, input: I) -> PResult<OM, I, Self::Output, Self::Error>
Auto Trait Implementations
impl<F, E> Freeze for TakeWhileMN<F, E>
where
F: Freeze,
PhantomData<E>: Freeze,
impl<F, E> RefUnwindSafe for TakeWhileMN<F, E>
where
F: RefUnwindSafe,
PhantomData<E>: RefUnwindSafe,
impl<F, E> Send for TakeWhileMN<F, E>
where
F: Send,
PhantomData<E>: Send,
impl<F, E> Sync for TakeWhileMN<F, E>
where
F: Sync,
PhantomData<E>: Sync,
impl<F, E> Unpin for TakeWhileMN<F, E>
where
F: Unpin,
PhantomData<E>: Unpin,
impl<F, E> UnsafeUnpin for TakeWhileMN<F, E>
where
F: UnsafeUnpin,
PhantomData<E>: UnsafeUnpin,
impl<F, E> UnwindSafe for TakeWhileMN<F, E>
where
F: UnwindSafe,
PhantomData<E>: UnwindSafe,
Blanket Implementations
impl<T> Any for TakeWhileMN<F, E>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for TakeWhileMN<F, E>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for TakeWhileMN<F, E>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for TakeWhileMN<F, E>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for TakeWhileMN<F, E>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for TakeWhileMN<F, E>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for TakeWhileMN<F, E>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>