Lines Matching refs:CustomError
13 pub struct CustomError(String);
15 impl<'a> From<(&'a str, ErrorKind)> for CustomError {
17 CustomError(format!("error code was: {:?}", error))
21 impl<'a> ParseError<&'a str> for CustomError {
23 CustomError(format!("error code was: {:?}", kind))
26 fn append(_: &'a str, kind: ErrorKind, other: CustomError) -> Self {
27 CustomError(format!("{:?}\nerror code was: {:?}", other, kind))
31 fn test1(input: &str) -> IResult<&str, &str, CustomError> {
32 //fix_error!(input, CustomError, tag!("abcd"))
36 fn test2(input: &str) -> IResult<&str, &str, CustomError> {
37 //terminated!(input, test1, fix_error!(CustomError, digit))
41 fn test3(input: &str) -> IResult<&str, &str, CustomError> {
46 fn test4(input: &str) -> IResult<&str, Vec<&str>, CustomError> {