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

source ยท
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))));