Trait rocket::mtls::oid::asn1_rs::nom::ParseTo

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

Used to integrate str’s parse() method

Required Methods§

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§

§

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

§

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

§

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

§

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

Implementors§