MatchKind in rustc_ast::ast - Rust (original) (raw)
pub enum MatchKind {
Prefix,
Postfix,
}
Expand description
The kind of match expression
Variants§
Prefix
match expr { … }
Postfix
expr.match { … }
Trait Implementations§
Auto Trait Implementations§
impl DynSend for MatchKind
impl DynSync for MatchKind
impl Freeze for MatchKind
impl RefUnwindSafe for MatchKind
impl Send for MatchKind
impl Sync for MatchKind
impl Unpin for MatchKind
impl UnwindSafe for MatchKind
Blanket Implementations§
Layout§
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: 1 byte
Size for each variant:
Prefix
: 0 bytesPostfix
: 0 bytes