• Home
  • Raw
  • Download

Lines Matching refs:Reject

54     fn parse(&self, tag: &str) -> Result<Cursor<'a>, Reject> {  in parse()  argument
58 Err(Reject) in parse()
63 pub(crate) struct Reject; struct
64 type PResult<'a, O> = Result<(Cursor<'a>, O), Reject>;
91 Err(Reject) => return s, in skip_whitespace()
116 return Err(Reject); in block_comment()
138 Err(Reject) in block_comment()
146 fn word_break(input: Cursor) -> Result<Cursor, Reject> { in word_break() argument
148 Some(ch) if is_ident_continue(ch) => Err(Reject), in word_break()
224 Err(Reject) => return Err(lex_error(input)), in token_stream()
260 Err(Reject) in leaf_token()
269 Err(Reject) in ident()
287 "_" | "super" | "self" | "Self" | "crate" => return Err(Reject), in ident_any()
300 _ => return Err(Reject), in ident_not_raw()
320 fn literal_nocapture(input: Cursor) -> Result<Cursor, Reject> { in literal_nocapture() argument
334 Err(Reject) in literal_nocapture()
341 Err(Reject) => input, in literal_suffix()
345 fn string(input: Cursor) -> Result<Cursor, Reject> { in string() argument
351 Err(Reject) in string()
355 fn cooked_string(input: Cursor) -> Result<Cursor, Reject> { in cooked_string() argument
385 return Err(Reject); in cooked_string()
401 Err(Reject) in cooked_string()
404 fn byte_string(input: Cursor) -> Result<Cursor, Reject> { in byte_string() argument
410 Err(Reject) in byte_string()
414 fn cooked_byte_string(mut input: Cursor) -> Result<Cursor, Reject> { in cooked_byte_string() argument
440 return Err(Reject); in cooked_byte_string()
449 None => return Err(Reject), in cooked_byte_string()
459 Err(Reject) in cooked_byte_string()
462 fn raw_string(input: Cursor) -> Result<Cursor, Reject> { in raw_string() argument
472 _ => return Err(Reject), in raw_string()
477 return Err(Reject); in raw_string()
492 Err(Reject) in raw_string()
495 fn byte(input: Cursor) -> Result<Cursor, Reject> { in byte() argument
508 return Err(Reject); in byte()
510 let (offset, _) = bytes.next().ok_or(Reject)?; in byte()
512 return Err(Reject); in byte()
518 fn character(input: Cursor) -> Result<Cursor, Reject> { in character() argument
533 return Err(Reject); in character()
535 let (idx, _) = chars.next().ok_or(Reject)?; in character()
596 fn float(input: Cursor) -> Result<Cursor, Reject> { in float() argument
606 fn float_digits(input: Cursor) -> Result<Cursor, Reject> { in float_digits() argument
610 _ => return Err(Reject), in float_digits()
631 return Err(Reject); in float_digits()
647 return Err(Reject); in float_digits()
654 Err(Reject) in float_digits()
691 fn int(input: Cursor) -> Result<Cursor, Reject> { in int() argument
701 fn digits(mut input: Cursor) -> Result<Cursor, Reject> { in digits() argument
722 return Err(Reject); in digits()
739 return Err(Reject); in digits()
750 Err(Reject) in digits()
760 Err(Reject) in punct()
767 Err(Reject) => Spacing::Alone, in punct()
776 return Err(Reject); in punct_char()
783 return Err(Reject); in punct_char()
790 Err(Reject) in punct_char()
809 return Err(Reject); in doc_comment()
852 return Err(Reject); in doc_comment_contents()
860 Err(Reject) in doc_comment_contents()