Trait sfv::ParseValue

source ·
pub trait ParseValue {
    // Required method
    fn parse(
        input_chars: &mut Peekable<Chars<'_>>
    ) -> Result<Self, &'static str>
       where Self: Sized;
}
Expand description

Implements parsing logic for each structured field value type.

Required Methods§

source

fn parse(input_chars: &mut Peekable<Chars<'_>>) -> Result<Self, &'static str>
where Self: Sized,

This method should not be used for parsing input into structured field value. Use Parser::parse_item, Parser::parse_list or Parsers::parse_dictionary for that.

Implementors§