Home
last modified time | relevance | path

Searched defs:CustomError (Results 1 – 4 of 4) sorted by relevance

/third_party/rust/crates/nom/tests/
Dcustom_errors.rs13 pub struct CustomError(String); struct
15 impl<'a> From<(&'a str, ErrorKind)> for CustomError { implementation
21 impl<'a> ParseError<&'a str> for CustomError { implementation
31 fn test1(input: &str) -> IResult<&str, &str, CustomError> { in test1() argument
36 fn test2(input: &str) -> IResult<&str, &str, CustomError> { in test2() argument
41 fn test3(input: &str) -> IResult<&str, &str, CustomError> { in test3() argument
46 fn test4(input: &str) -> IResult<&str, Vec<&str>, CustomError> { in test4() argument
/third_party/rust/crates/nom/examples/
Dcustom_error.rs9 pub enum CustomError<I> { enum
14 impl<I> ParseError<I> for CustomError<I> { implementation
/third_party/rust/crates/nom/src/combinator/
Dtests.rs93 impl From<u32> for CustomError { implementation
99 impl<I> ParseError<I> for CustomError { implementation
109 struct CustomError; struct
111 fn custom_error(input: &[u8]) -> IResult<&[u8], &[u8], CustomError> { in custom_error() argument
/third_party/python/Lib/test/
Dtest_dataclasses.py26 class CustomError(Exception): pass class