Enum nom::Needed [−][src]
pub enum Needed {
Unknown,
Size(usize),
}Contains information on needed data if a parser returned Incomplete
Variants
Unknownneeds more data, but we do not know how much
Size(usize)contains the required data size
Methods
impl Needed[src]
impl Neededpub fn is_known(&self) -> bool[src]
pub fn is_known(&self) -> boolpub fn map<F: FnOnce(usize) -> usize>(self, f: F) -> Needed[src]
pub fn map<F: FnOnce(usize) -> usize>(self, f: F) -> NeededMaps a Needed to Needed by appling a function to a contained Size value.
Trait Implementations
impl Debug for Needed[src]
impl Debug for Neededfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Needed[src]
impl PartialEq for Neededfn eq(&self, other: &Needed) -> bool[src]
fn eq(&self, other: &Needed) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Needed) -> bool[src]
fn ne(&self, other: &Needed) -> boolThis method tests for !=.
impl Eq for Needed[src]
impl Eq for Neededimpl Clone for Needed[src]
impl Clone for Neededfn clone(&self) -> Needed[src]
fn clone(&self) -> NeededReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for Needed[src]
impl Copy for Needed