winnow::stream

Trait ParseSlice

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

Used to integrate str’s parse() method

Required Methods§

Source

fn parse_slice(&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> ParseSlice<R> for &'a str

Source§

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

Source§

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

Source§

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

Implementors§