pub enum MatchArmBody {
Expr(Expr),
Block(Block),
}Expand description
The body of a match arm — either a single expression or a block.
Variants§
Trait Implementations§
Source§impl Clone for MatchArmBody
impl Clone for MatchArmBody
Source§fn clone(&self) -> MatchArmBody
fn clone(&self) -> MatchArmBody
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 moreSource§impl Debug for MatchArmBody
impl Debug for MatchArmBody
Source§impl<'de> Deserialize<'de> for MatchArmBody
impl<'de> Deserialize<'de> for MatchArmBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MatchArmBody
impl PartialEq for MatchArmBody
Source§impl Serialize for MatchArmBody
impl Serialize for MatchArmBody
impl StructuralPartialEq for MatchArmBody
Auto Trait Implementations§
impl Freeze for MatchArmBody
impl RefUnwindSafe for MatchArmBody
impl Send for MatchArmBody
impl Sync for MatchArmBody
impl Unpin for MatchArmBody
impl UnwindSafe for MatchArmBody
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