Trait rocket::mtls::x509::der_parser::asn1_rs::nom::ParseTo

source ·
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§

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> ParseTo<R> for &'a str
where R: FromStr,

source§

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

source§

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

source§

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

Implementors§