syn

Module pat

source

Re-exports§

Modules§

Structs§

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

Enums§

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