Lines Matching refs:ErrorKind
540 use crate::error::ErrorKind;
570 Err($crate::Err::Error($crate::error::make_error($i, $crate::error::ErrorKind::Tag)))
602 assert_eq!(multi_empty(d), Err(Err::Error(error_position!(d, ErrorKind::SeparatedList)))); in separated_list()
632 assert_eq!(multi(c), Err(Err::Error(error_position!(c, ErrorKind::Tag)))); in separated_nonempty_list()
657 Err(Err::Error(error_position!(&b"abcdef"[..], ErrorKind::Many0))) in many0()
685 assert_eq!(multi(c), Err(Err::Error(error_position!(c, ErrorKind::Tag)))); in many1()
706 ErrorKind::ManyTill, in many_till()
707 error_position!(&c[..], ErrorKind::Tag) in many_till()
717 Err(Err::Error(error_position!(input, ErrorKind::Tag))) in infinite_many()
727 assert_eq!(multi1(a), Err(Err::Error(error_position!(a, ErrorKind::Tag)))); in infinite_many()
741 assert_eq!(multi(a), Err(Err::Error(error_position!(&b"ef"[..], ErrorKind::Tag)))); in many_m_n()
761 assert_eq!(cnt_2(&b"xxx"[..]), Err(Err::Error(error_position!(&b"xxx"[..], ErrorKind::Tag)))); in count()
764 Err(Err::Error(error_position!(&b"xxxabcabcdef"[..], ErrorKind::Tag))) in count()
768 Err(Err::Error(error_position!(&b"xxxabcdef"[..], ErrorKind::Tag))) in count()
807 impl<I> From<(I,ErrorKind)> for NilError {
808 fn from(_: (I, ErrorKind)) -> Self { in from()
814 fn from_error_kind(_: I, _: ErrorKind) -> NilError { in from_error_kind()
817 fn append(_: I, _: ErrorKind, _: NilError) -> NilError { in append() argument
839 assert_eq!(cnt(&b"xxx"[..]), Err(Err::Error(error_position!(&b"xxx"[..], ErrorKind::Digit)))); in length_count()
842 Err(Err::Error(error_position!(&b"xxx"[..], ErrorKind::Tag))) in length_count()
852 assert_eq!(take(&b"xxx"[..]), Err(Err::Error(error_position!(&b"xxx"[..], ErrorKind::Digit)))); in length_data()
862 … assert_eq!(length_value_1(&i1), Err(Err::Error(error_position!(&b""[..], ErrorKind::Complete)))); in length_value_test()
863 … assert_eq!(length_value_2(&i1), Err(Err::Error(error_position!(&b""[..], ErrorKind::Complete)))); in length_value_test()
868 Err(Err::Error(error_position!(&i2[1..2], ErrorKind::Complete))) in length_value_test()
872 Err(Err::Error(error_position!(&i2[1..2], ErrorKind::Complete))) in length_value_test()
904 Err(Err::Error(error_position!(&b"abcdef"[..], ErrorKind::Many0))) in fold_many0()
926 assert_eq!(multi(c), Err(Err::Error(error_position!(c, ErrorKind::Many1)))); in fold_many1()
945 assert_eq!(multi(a), Err(Err::Error(error_position!(a, ErrorKind::ManyMN)))); in fold_many_m_n()
984 Err(Err::Error(error_position!(&b"hello"[..], ErrorKind::Many1Count))) in many1_count()