Function rocket::mtls::oid::asn1_rs::nom::combinator::rest_len

source ·
pub fn rest_len<T, E>(input: T) -> Result<(T, usize), Err<E>>
where E: ParseError<T>, T: InputLength,
Available on crate feature mtls only.
Expand description

Return the length of the remaining input.

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