Lines Matching refs:pat
76 // match pat {
79 // Pat::Box(pat) => {...}
80 // Pat::Ident(pat) => {...}
82 // Pat::Wild(pat) => {...}
125 pub pat: Box<Pat>,
136 pub pat: Box<Pat>,
199 pub pat: Box<Pat>,
224 pub pat: Box<Pat>,
241 /// `$:pat`.
314 /// This parser matches the behavior of the Rust 2021 edition's `$:pat`
335 /// # ($value:expr, ($($conditions1:pat),*), ($($conditions2:pat),*), $then:expr) => {
364 pat: Box::new(Pat::parse_single(input)?),
372 let mut pat = Pat::parse_single(input)?;
377 cases.push_value(pat);
381 let pat = Pat::parse_single(input)?;
382 cases.push_value(pat);
384 pat = Pat::Or(PatOr {
390 Ok(pat)
542 pat: Box::new(Pat::parse_multi_with_leading_vert(input)?),
551 let pat = if boxed.is_some() {
567 pat: Box::new(pat),
622 pat: Box::new(value),
645 pat: Box::new(Pat::parse_single(input)?),
678 PatRangeBound::Const(pat) => Expr::Const(pat),
679 PatRangeBound::Lit(pat) => Expr::Lit(pat),
680 PatRangeBound::Path(pat) => Expr::Path(pat),
686 PatRangeBound::Const(pat) => Pat::Const(pat),
687 PatRangeBound::Lit(pat) => Pat::Lit(pat),
688 PatRangeBound::Path(pat) => Pat::Path(pat),
734 Pat::Range(pat) if pat.start.is_none() || pat.end.is_none() => {
735 let (start, end) = match pat.limits {
809 self.pat.to_tokens(tokens);
820 self.pat.to_tokens(tokens);
892 self.pat.to_tokens(tokens);
914 self.pat.to_tokens(tokens);