rocket::mtls::x509::der_parser::asn1_rs::nom

Trait 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§