Trait nom::ParseTo[][src]

pub trait ParseTo<R> {
    fn parse_to(&self) -> Option<R>;
}
[]

used to integrate str’s parse() method

Required methods

fn parse_to(&self) -> Option<R>[src][]

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

Implementations on Foreign Types

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

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

Implementors