• Home
  • Raw
  • Download

Lines Matching refs:Vec

13   lib::std::vec::Vec,
23 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list0_test()
26 fn multi_empty(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list0_test()
29 fn empty_sep(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list0_test()
32 fn multi_longsep(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list0_test()
50 assert_eq!(multi(c), Ok((&b"azerty"[..], Vec::new()))); in separated_list0_test()
72 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list1_test()
75 fn multi_longsep(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list1_test()
107 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in many0_test()
110 fn multi_empty(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in many0_test()
119 assert_eq!(multi(&b"azerty"[..]), Ok((&b"azerty"[..], Vec::new()))); in many0_test()
135 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in many1_test()
158 fn multi(i: &[u8]) -> IResult<&[u8], (Vec<&[u8]>, &[u8])> { in many_till_test()
167 let res_b: (Vec<&[u8]>, &[u8]) = (Vec::new(), &b"efgh"[..]); in many_till_test()
189 fn multi0(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in infinite_many()
193 assert_eq!(multi0(a), Ok((a, Vec::new()))); in infinite_many()
195 fn multi1(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in infinite_many()
208 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in many_m_n_test()
235 fn cnt_2(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in count_test()
269 fn counter_2(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in count_zero()
274 let parsed_done = Vec::new(); in count_zero()
277 let parsed_incompl_1 = Vec::new(); in count_zero()
279 let parsed_incompl_2 = Vec::new(); in count_zero()
282 let parsed_err = Vec::new(); in count_zero()
284 let parsed_err_1 = Vec::new(); in count_zero()
287 let parsed_err_2 = Vec::new(); in count_zero()
331 fn cnt(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in length_count_test()
410 fn fold_into_vec<T>(mut acc: Vec<T>, item: T) -> Vec<T> { in fold_many0_test()
414 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in fold_many0_test()
415 fold_many0(tag("abcd"), Vec::new, fold_into_vec)(i) in fold_many0_test()
417 fn multi_empty(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in fold_many0_test()
418 fold_many0(tag(""), Vec::new, fold_into_vec)(i) in fold_many0_test()
426 assert_eq!(multi(&b"azerty"[..]), Ok((&b"azerty"[..], Vec::new()))); in fold_many0_test()
442 fn fold_into_vec<T>(mut acc: Vec<T>, item: T) -> Vec<T> { in fold_many1_test()
446 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in fold_many1_test()
447 fold_many1(tag("abcd"), Vec::new, fold_into_vec)(i) in fold_many1_test()
469 fn fold_into_vec<T>(mut acc: Vec<T>, item: T) -> Vec<T> { in fold_many_m_n_test()
473 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in fold_many_m_n_test()
474 fold_many_m_n(2, 4, tag("Abcd"), Vec::new, fold_into_vec)(i) in fold_many_m_n_test()