TyPatKind in rustc_ast::ast - Rust (original) (raw)
pub enum TyPatKind {
Range(Option<Box<AnonConst>>, Option<Box<AnonConst>>, Spanned<RangeEnd>),
NotNull,
Or(ThinVec<TyPat>),
Err(ErrorGuaranteed),
}Expand description
All the different flavors of pattern that Rust recognizes.
A range pattern (e.g., 1...2, 1..2, 1.., ..2, 1..=2, ..=2).
A !null pattern for raw pointers.
Placeholder for a pattern that wasn’t syntactically well formed in some way.
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
Range: 28 bytesNotNull: 0 bytesOr: 12 bytesErr: 0 bytes