• Home
  • Raw
  • Download

Lines Matching full:needed

9 use crate::internal::{Err, IResult, Needed};
22 /// # use nom::{Err, error::{ErrorKind, Error}, Needed, IResult};
29 /// assert_eq!(parser(""), Err(Err::Incomplete(Needed::new(1))));
40 None => Err(Err::Incomplete(Needed::new(c.len() - i.input_len()))), in char()
52 /// # use nom::{Err, error::{ErrorKind, Error}, Needed, IResult};
59 /// assert_eq!(parser(""), Err(Err::Incomplete(Needed::Unknown)));
72 None => Err(Err::Incomplete(Needed::Unknown)), in satisfy()
84 /// # use nom::{Err, error::ErrorKind, Needed};
88 /// assert_eq!(one_of::<_, _, (_, ErrorKind)>("a")(""), Err(Err::Incomplete(Needed::new(1))));
97 None => Err(Err::Incomplete(Needed::new(1))), in one_of()
109 /// # use nom::{Err, error::ErrorKind, Needed};
113 /// assert_eq!(none_of::<_, _, (_, ErrorKind)>("a")(""), Err(Err::Incomplete(Needed::new(1))));
122 None => Err(Err::Incomplete(Needed::new(1))), in none_of()
134 /// # use nom::{Err, error::ErrorKind, IResult, Needed};
138 /// assert_eq!(crlf::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(2))));
149 CompareResult::Incomplete => Err(Err::Incomplete(Needed::new(2))), in crlf()
163 /// # use nom::{Err, error::{Error, ErrorKind}, IResult, Needed};
166 /// assert_eq!(not_line_ending::<_, (_, ErrorKind)>("abc"), Err(Err::Incomplete(Needed::Unknown)));
167 /// assert_eq!(not_line_ending::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::Unknown)));
183 None => Err(Err::Incomplete(Needed::Unknown)), in not_line_ending()
192 CompareResult::Incomplete => Err(Err::Incomplete(Needed::Unknown)), in not_line_ending()
212 /// # use nom::{Err, error::ErrorKind, IResult, Needed};
216 /// assert_eq!(line_ending::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1))));
226 CompareResult::Incomplete => Err(Err::Incomplete(Needed::new(1))), in line_ending()
231 CompareResult::Incomplete => Err(Err::Incomplete(Needed::new(2))), in line_ending()
244 /// # use nom::{Err, error::ErrorKind, IResult, Needed};
248 /// assert_eq!(newline::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1))));
264 /// # use nom::{Err, error::ErrorKind, IResult, Needed};
268 /// assert_eq!(tab::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1))));
285 /// # use nom::{character::streaming::anychar, Err, error::ErrorKind, IResult, Needed};
287 /// assert_eq!(anychar::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1))));
296 None => Err(Err::Incomplete(Needed::new(1))), in anychar()
311 /// # use nom::{Err, error::ErrorKind, IResult, Needed};
315 /// assert_eq!(alpha0::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1))));
332 /// # use nom::{Err, error::ErrorKind, IResult, Needed};
336 /// assert_eq!(alpha1::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1))));
353 /// # use nom::{Err, error::ErrorKind, IResult, Needed};
357 /// assert_eq!(digit0::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1))));
374 /// # use nom::{Err, error::ErrorKind, IResult, Needed};
378 /// assert_eq!(digit1::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1))));
395 /// # use nom::{Err, error::ErrorKind, IResult, Needed};
399 /// assert_eq!(hex_digit0::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1))));
416 /// # use nom::{Err, error::ErrorKind, IResult, Needed};
420 /// assert_eq!(hex_digit1::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1))));
437 /// # use nom::{Err, error::ErrorKind, IResult, Needed};
441 /// assert_eq!(oct_digit0::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1))));
458 /// # use nom::{Err, error::ErrorKind, IResult, Needed};
462 /// assert_eq!(oct_digit1::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1))));
479 /// # use nom::{Err, error::ErrorKind, IResult, Needed};
483 /// assert_eq!(alphanumeric0::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1))));
500 /// # use nom::{Err, error::ErrorKind, IResult, Needed};
504 /// assert_eq!(alphanumeric1::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1))));
521 /// # use nom::{Err, error::ErrorKind, IResult, Needed};
525 /// assert_eq!(space0::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1))));
544 /// # use nom::{Err, error::ErrorKind, IResult, Needed};
548 /// assert_eq!(space1::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1))));
571 /// # use nom::{Err, error::ErrorKind, IResult, Needed};
575 /// assert_eq!(multispace0::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1))));
595 /// # use nom::{Err, error::ErrorKind, IResult, Needed};
599 /// assert_eq!(multispace1::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1))));
648 return Err(Err::Incomplete(Needed::new(1)));
686 Err(Err::Incomplete(Needed::new(1)))
709 return Err(Err::Incomplete(Needed::new(1)));
729 Err(Err::Incomplete(Needed::new(1)))
741 use crate::internal::{Err, Needed};
767 //assert_eq!(alpha1::<_, (_, ErrorKind)>(a), Err(Err::Incomplete(Needed::new(1)))); in character()
768 assert_parse!(alpha1(a), Err(Err::Incomplete(Needed::new(1)))); in character()
778 Err(Err::Incomplete(Needed::new(1))) in character()
784 Err(Err::Incomplete(Needed::new(1))) in character()
788 Err(Err::Incomplete(Needed::new(1))) in character()
792 Err(Err::Incomplete(Needed::new(1))) in character()
802 Err(Err::Incomplete(Needed::new(1))) in character()
808 Err(Err::Incomplete(Needed::new(1))) in character()
813 Err(Err::Incomplete(Needed::new(1))) in character()
821 Err(Err::Incomplete(Needed::new(1))) in character()
836 Err(Err::Incomplete(Needed::new(1))) in character_s()
844 Err(Err::Incomplete(Needed::new(1))) in character_s()
850 Err(Err::Incomplete(Needed::new(1))) in character_s()
854 Err(Err::Incomplete(Needed::new(1))) in character_s()
858 Err(Err::Incomplete(Needed::new(1))) in character_s()
865 Err(Err::Incomplete(Needed::new(1))) in character_s()
871 Err(Err::Incomplete(Needed::new(1))) in character_s()
876 Err(Err::Incomplete(Needed::new(1))) in character_s()
881 Err(Err::Incomplete(Needed::new(1))) in character_s()
962 Err(Err::Incomplete(Needed::Unknown)) in is_not_line_ending_bytes()
991 Err(Err::Incomplete(Needed::Unknown)) in is_not_line_ending_str()
1086 assert_parse!(crlf(&b"\r"[..]), Err(Err::Incomplete(Needed::new(2)))); in cr_lf()
1093 assert_parse!(crlf("\r"), Err(Err::Incomplete(Needed::new(2)))); in cr_lf()
1106 Err(Err::Incomplete(Needed::new(2))) in end_of_line()
1115 assert_parse!(line_ending("\r"), Err(Err::Incomplete(Needed::new(2)))); in end_of_line()