pub enum MatchHand {
Brace(Attributed<Expression>),
Expression(Attributed<Expression>),
}Variants§
Brace(Attributed<Expression>)
Expression(Attributed<Expression>)
Implementations§
Source§impl MatchHand
impl MatchHand
pub fn into_brace(self) -> Option<Attributed<Expression>>
pub fn into_expression(self) -> Option<Attributed<Expression>>
pub fn as_brace(&self) -> Option<&Attributed<Expression>>
pub fn as_expression(&self) -> Option<&Attributed<Expression>>
pub fn is_brace(&self) -> bool
pub fn is_expression(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MatchHand
impl RefUnwindSafe for MatchHand
impl Send for MatchHand
impl Sync for MatchHand
impl Unpin for MatchHand
impl UnsafeUnpin for MatchHand
impl UnwindSafe for MatchHand
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