Enum nom::Needed [] [src]

pub enum Needed {

Contains information on needed data if a parser returned Incomplete



needs more data, but we do not know how much


contains the required data size


impl Needed

fn is_known(&self) -> bool

fn map<F: FnOnce(usize) -> usize>(self, f: F) -> Needed

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

Trait Implementations

impl Copy for Needed

impl Clone for Needed

fn clone(&self) -> Needed

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Eq for Needed

impl PartialEq for Needed

fn eq(&self, __arg_0: &Needed) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Needed) -> bool

This method tests for !=.

impl Debug for Needed

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.