devela::_dep::winnow::stream

Trait ParseSlice

pub trait ParseSlice<R> {
    // Required method
    fn parse_slice(&self) -> Option<R> ;
}
Available on crate feature dep_winnow only.
Expand description

Used to integrate str’s parse() method

Required Methods§

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§

§

impl<R> ParseSlice<R> for &str
where R: FromStr,

§

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

§

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

§

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

Implementors§