Enum nom::Needed [−][src]
pub enum Needed {
Unknown,
Size(NonZeroUsize),
}
Expand description
Contains information on needed data if a parser returned Incomplete
Variants
Unknown
Needs more data, but we do not know how much
Size(NonZeroUsize)
Tuple Fields
0: NonZeroUsize
Contains the required data size in bytes
Implementations
Creates Needed
instance, returns Needed::Unknown
if the argument is zero
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Needed
impl UnwindSafe for Needed
Blanket Implementations
Mutably borrows from an owned value. Read more