Enum rustc_hir::hir::MatchSource [−][src]
pub enum MatchSource {
Normal,
ForLoopDesugar,
TryDesugar,
AwaitDesugar,
}
Expand description
Hints at the original code for a match _ { .. }
.
Variants
A match _ { .. }
.
A desugared for _ in _ { .. }
loop.
A desugared ?
operator.
A desugared <expr>.await
.
Implementations
Trait Implementations
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 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:
Normal
: 0 bytesForLoopDesugar
: 0 bytesTryDesugar
: 0 bytesAwaitDesugar
: 0 bytes