Enum tagua_parser::internal::Needed [] [src]

pub enum Needed {
    Unknown,
    Size(usize),
}

Contains information on needed data if a parser returned Incomplete

Variants

needs more data, but we do not know how much

contains the required data size

Methods

impl Needed

Maps a Needed to Needed by appling a function to a contained Size value.

Trait Implementations

impl PartialEq<Needed> for Needed

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Needed

Formats the value using the given formatter.

impl Copy for Needed

impl Eq for Needed

impl Clone for Needed