Lines Matching refs:Needed
533 use crate::internal::{Err, IResult, Needed};
572 Err($crate::Err::Incomplete(Needed::Size(blen)))
608 assert_eq!(multi(f), Err(Err::Incomplete(Needed::Size(4)))); in separated_list()
609 assert_eq!(multi_longsep(g), Err(Err::Incomplete(Needed::Size(2)))); in separated_list()
610 assert_eq!(multi(h), Err(Err::Incomplete(Needed::Size(4)))); in separated_list()
636 assert_eq!(multi(f), Err(Err::Incomplete(Needed::Size(4)))); in separated_nonempty_list()
637 assert_eq!(multi_longsep(g), Err(Err::Incomplete(Needed::Size(2)))); in separated_nonempty_list()
638 assert_eq!(multi(h), Err(Err::Incomplete(Needed::Size(4)))); in separated_nonempty_list()
652 assert_eq!(multi(&b"abcdab"[..]), Err(Err::Incomplete(Needed::Size(4)))); in many0()
653 assert_eq!(multi(&b"abcd"[..]), Err(Err::Incomplete(Needed::Size(4)))); in many0()
654 assert_eq!(multi(&b""[..]), Err(Err::Incomplete(Needed::Size(4)))); in many0()
686 assert_eq!(multi(d), Err(Err::Incomplete(Needed::Size(4)))); in many1()
748 assert_eq!(multi(e), Err(Err::Incomplete(Needed::Size(4)))); in many_m_n()
759 assert_eq!(cnt_2(&b"ab"[..]), Err(Err::Incomplete(Needed::Size(3)))); in count()
760 assert_eq!(cnt_2(&b"abcab"[..]), Err(Err::Incomplete(Needed::Size(3)))); in count()
837 assert_eq!(cnt(&b"2ab"[..]), Err(Err::Incomplete(Needed::Size(3)))); in length_count()
838 assert_eq!(cnt(&b"3abcab"[..]), Err(Err::Incomplete(Needed::Size(3)))); in length_count()
851 assert_eq!(take(&b"3ab"[..]), Err(Err::Incomplete(Needed::Size(3)))); in length_data()
899 assert_eq!(multi(&b"abcdab"[..]), Err(Err::Incomplete(Needed::Size(4)))); in fold_many0()
900 assert_eq!(multi(&b"abcd"[..]), Err(Err::Incomplete(Needed::Size(4)))); in fold_many0()
901 assert_eq!(multi(&b""[..]), Err(Err::Incomplete(Needed::Size(4)))); in fold_many0()
927 assert_eq!(multi(d), Err(Err::Incomplete(Needed::Size(4)))); in fold_many1()
952 assert_eq!(multi(e), Err(Err::Incomplete(Needed::Size(4)))); in fold_many_m_n()