Enum nom::Needed
[−]
[src]
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]
fn is_known(&self) -> bool
[src]
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 Debug for Needed
[src]
impl PartialEq for Needed
[src]
fn eq(&self, __arg_0: &Needed) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Needed) -> bool
[src]
This method tests for !=
.
impl Eq for Needed
[src]
impl Clone for Needed
[src]
fn clone(&self) -> Needed
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more