Enum tagua_parser::internal::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
fn is_known(&self) -> bool
fn map<F>(self, f: F) -> Needed where F: FnOnce(usize) -> usize
Maps a Needed to Needed by appling a function to a contained Size value.
Trait Implementations
impl PartialEq<Needed> 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<(), Error>
Formats the value using the given formatter.