Struct LengthValue
pub struct LengthValue<F, G, E> { /* private fields */ }
Parser implementation for the [length_value] combinator
Trait Implementations
impl<I, F, G, E> Parser<I> for LengthValue<F, G, E>
where
I: Clone + Input,
F: Parser<I, Error = E>,
G: Parser<I, Error = E>,
<F as Parser<I>>::Output: ToUsize,
E: ParseError<I>,
type Output = <G as Parser<I>>::Output;type Error = E;fn process<OM: OutputMode>(&mut self, input: I) -> PResult<OM, I, Self::Output, Self::Error>
Auto Trait Implementations
impl<F, G, E> Freeze for LengthValue<F, G, E>
where
F: Freeze,
G: Freeze,
PhantomData<E>: Freeze,
impl<F, G, E> RefUnwindSafe for LengthValue<F, G, E>
where
F: RefUnwindSafe,
G: RefUnwindSafe,
PhantomData<E>: RefUnwindSafe,
impl<F, G, E> Send for LengthValue<F, G, E>
where
F: Send,
G: Send,
PhantomData<E>: Send,
impl<F, G, E> Sync for LengthValue<F, G, E>
where
F: Sync,
G: Sync,
PhantomData<E>: Sync,
impl<F, G, E> Unpin for LengthValue<F, G, E>
where
F: Unpin,
G: Unpin,
PhantomData<E>: Unpin,
impl<F, G, E> UnsafeUnpin for LengthValue<F, G, E>
where
F: UnsafeUnpin,
G: UnsafeUnpin,
PhantomData<E>: UnsafeUnpin,
impl<F, G, E> UnwindSafe for LengthValue<F, G, E>
where
F: UnwindSafe,
G: UnwindSafe,
PhantomData<E>: UnwindSafe,
Blanket Implementations
impl<T> Any for LengthValue<F, G, E>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for LengthValue<F, G, E>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for LengthValue<F, G, E>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for LengthValue<F, G, E>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for LengthValue<F, G, 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 LengthValue<F, G, E>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for LengthValue<F, G, E>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>