mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
Document rustc_ast::ast::Pat
This commit is contained in:
@@ -511,6 +511,9 @@ pub struct Block {
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
/// A match pattern.
|
||||
///
|
||||
/// Patterns appear in match statements and some other contexts, such as `let` and `if let`.
|
||||
#[derive(Clone, RustcEncodable, RustcDecodable, Debug)]
|
||||
pub struct Pat {
|
||||
pub id: NodeId,
|
||||
|
||||
Reference in New Issue
Block a user