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

Function rest

Source
pub fn rest<T, E>(input: T) -> Result<(T, T), Err<E>>
Available on crate feature mtls only.
Expand description

Return the remaining input.

use nom::combinator::rest;
assert_eq!(rest::<_,(_, ErrorKind)>("abc"), Ok(("", "abc")));
assert_eq!(rest::<_,(_, ErrorKind)>(""), Ok(("", "")));