nom8::input

Trait ParseTo

Source
pub trait ParseTo<R> {
    // Required method
    fn parse_to(&self) -> Option<R>;
}
Expand description

Used to integrate str’s parse() method

Required Methods§

Source

fn parse_to(&self) -> Option<R>

Succeeds if parse() succeeded. The byte slice implementation will first convert it to a &str, then apply the parse() function

Implementations on Foreign Types§

Source§

impl<'a, R: FromStr> ParseTo<R> for &'a str

Source§

fn parse_to(&self) -> Option<R>

Source§

impl<'a, R: FromStr> ParseTo<R> for &'a [u8]

Source§

fn parse_to(&self) -> Option<R>

Implementors§

Source§

impl<I, R> ParseTo<R> for Located<I>
where I: ParseTo<R>,

Source§

impl<I, R> ParseTo<R> for Streaming<I>
where I: ParseTo<R>,

Source§

impl<I, S, R> ParseTo<R> for Stateful<I, S>
where I: ParseTo<R>,