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

pub fn fail<I, O, E>(i: I) -> Result<(I, O), Err<E>>
where E: ParseError<I>,
Available on crate feature mtls only.
Expand description

A parser which always fails.

use nom::combinator::fail;

let s = "string";
assert_eq!(fail::<_, &str, _>(s), Err(Err::Error((s, ErrorKind::Fail))));