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
Expand description
A match _ { .. }.
Expand description
An if let _ = _ { .. } (optionally with else { .. }).
Show fields
Fields of IfLetDesugar
contains_else_clause: boolExpand description
An if let _ = _ => { .. } match guard.
Expand description
A while _ { .. } (which was desugared to a loop { match _ { .. } }).
Expand description
A while let _ = _ { .. } (which was desugared to a
loop { match _ { .. } }).
Expand description
A desugared for _ in _ { .. } loop.
Expand description
A desugared ? operator.
Expand description
A desugared <expr>.await.
Implementations
Trait Implementations
impl Clone for MatchSource[src]
impl Clone for MatchSource[src]fn clone(&self) -> MatchSource[src]
fn clone(&self) -> MatchSource[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for MatchSource[src]
impl Debug for MatchSource[src]impl<__E: Encoder> Encodable<__E> for MatchSource[src]
impl<__E: Encoder> Encodable<__E> for MatchSource[src]impl Hash for MatchSource[src]
impl Hash for MatchSource[src]impl<__CTX> HashStable<__CTX> for MatchSource where
__CTX: HashStableContext, [src]
impl<__CTX> HashStable<__CTX> for MatchSource where
__CTX: HashStableContext, [src]fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)[src]
impl PartialEq<MatchSource> for MatchSource[src]
impl PartialEq<MatchSource> for MatchSource[src]fn eq(&self, other: &MatchSource) -> bool[src]
fn eq(&self, other: &MatchSource) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &MatchSource) -> bool[src]
fn ne(&self, other: &MatchSource) -> bool[src]This method tests for !=.
impl Copy for MatchSource[src]
impl Eq for MatchSource[src]
impl StructuralEq for MatchSource[src]
impl StructuralPartialEq for MatchSource[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more