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 | contains the required data size |
Methods
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.