pub struct MatchExprExtExt2 {
pub scrutinee: String,
pub arms: Vec<(String, String)>,
}Expand description
A match expression in the AST.
Fields§
§scrutinee: StringThe discriminant expression
arms: Vec<(String, String)>The match arms as (pattern, body) pairs
Implementations§
Trait Implementations§
Source§impl Clone for MatchExprExtExt2
impl Clone for MatchExprExtExt2
Source§fn clone(&self) -> MatchExprExtExt2
fn clone(&self) -> MatchExprExtExt2
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MatchExprExtExt2
impl RefUnwindSafe for MatchExprExtExt2
impl Send for MatchExprExtExt2
impl Sync for MatchExprExtExt2
impl Unpin for MatchExprExtExt2
impl UnsafeUnpin for MatchExprExtExt2
impl UnwindSafe for MatchExprExtExt2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more