Lines Matching refs:str
15 impl<'a> From<(&'a str, ErrorKind)> for CustomError {
16 fn from(error: (&'a str, ErrorKind)) -> Self {
21 impl<'a> ParseError<&'a str> for CustomError {
22 fn from_error_kind(_: &'a str, kind: ErrorKind) -> Self {
26 fn append(_: &'a str, kind: ErrorKind, other: CustomError) -> Self {
31 fn test1(input: &str) -> IResult<&str, &str, CustomError> {
36 fn test2(input: &str) -> IResult<&str, &str, CustomError> {
41 fn test3(input: &str) -> IResult<&str, &str, CustomError> {
42 verify(test1, |s: &str| s.starts_with("abcd"))(input)
46 fn test4(input: &str) -> IResult<&str, Vec<&str>, CustomError> {