Module pat

Source

Re-exports§

pub use crate::expr::ExprConst as PatConst;
pub use crate::expr::ExprLit as PatLit;
pub use crate::expr::ExprMacro as PatMacro;
pub use crate::expr::ExprPath as PatPath;
pub use crate::expr::ExprRange as PatRange;

Modules§

parsing 🔒
printing 🔒

Structs§

FieldPat
A single field in a struct pattern.
PatIdent
A pattern that binds a new variable: ref mut binding @ SUBPATTERN.
PatOr
A pattern that matches any one of a set of cases.
PatParen
A parenthesized pattern: (A | B).
PatReference
A reference pattern: &mut var.
PatRest
The dots in a tuple or slice pattern: [0, 1, ..].
PatSlice
A dynamically sized slice pattern: [a, b, ref i @ .., y, z].
PatStruct
A struct or struct variant pattern: Variant { x, y, .. }.
PatTuple
A tuple pattern: (a, b).
PatTupleStruct
A tuple struct or tuple variant pattern: Variant(x, y, .., z).
PatType
A type ascription pattern: foo: f64.
PatWild
A pattern that matches any value: _.

Enums§

Pat
A pattern in a local binding, function signature, match expression, or various other places.