Lines Matching refs:CustomError
14 pub struct CustomError(String); struct
16 impl<'a> From<(&'a str, ErrorKind)> for CustomError { implementation
18 CustomError(format!("error code was: {:?}", error)) in from()
22 impl<'a> ParseError<&'a str> for CustomError { implementation
24 CustomError(format!("error code was: {:?}", kind)) in from_error_kind()
27 fn append(_: &'a str, kind: ErrorKind, other: CustomError) -> Self { in append()
28 CustomError(format!("{:?}\nerror code was: {:?}", other, kind)) in append()
34 fn test1(input: &str) -> IResult<&str, &str, CustomError> { in test1() argument
39 fn test2(input: &str) -> IResult<&str, &str, CustomError> { in test2() argument
44 fn test3(input: &str) -> IResult<&str, &str, CustomError> { in test3() argument
51 fn test4(input: &str) -> IResult<&str, Vec<&str>, CustomError> { in test4() argument