Enum rustc_hir::hir::MatchSource [−][src]
pub enum MatchSource {
Normal,
IfLetDesugar {
contains_else_clause: bool,
},
IfLetGuardDesugar,
WhileDesugar,
WhileLetDesugar,
ForLoopDesugar,
TryDesugar,
AwaitDesugar,
}Expand description
Hints at the original code for a match _ { .. }.
Variants
A match _ { .. }.
An if let _ = _ { .. } (optionally with else { .. }).
Show fields
Fields of IfLetDesugar
contains_else_clause: boolAn if let _ = _ => { .. } match guard.
A while _ { .. } (which was desugared to a loop { match _ { .. } }).
A while let _ = _ { .. } (which was desugared to a
loop { match _ { .. } }).
A desugared for _ in _ { .. } loop.
A desugared ? operator.
A desugared <expr>.await.
Implementations
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for MatchSource
impl Send for MatchSource
impl Sync for MatchSource
impl Unpin for MatchSource
impl UnwindSafe for MatchSource
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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