[][src]Enum nom::Needed

pub enum Needed {
    Unknown,
    Size(usize),
}

Contains information on needed data if a parser returned Incomplete

Variants

Unknown

needs more data, but we do not know how much

Size(usize)

contains the required data size

Methods

impl Needed[src]

pub fn is_known(&self) -> bool[src]

pub fn map<F: FnOnce(usize) -> usize>(self, f: F) -> Needed[src]

Maps a Needed to Needed by appling a function to a contained Size value.

Trait Implementations

impl PartialEq<Needed> for Needed[src]

impl Clone for Needed[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for Needed[src]

impl Copy for Needed[src]

impl Debug for Needed[src]

Auto Trait Implementations

impl Unpin for Needed

impl Send for Needed

impl Sync for Needed

impl UnwindSafe for Needed

impl RefUnwindSafe for Needed

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]