pub struct MatchCase<'source> {
pub let_token: Option<Token<'source>>,
pub binding: Option<Binding<'source>>,
pub equals_token: Option<Token<'source>>,
pub case: Option<Box<Expression<'source>>>,
pub arrow_token: Option<Token<'source>>,
pub expression: Option<Box<Expression<'source>>>,
pub semicolon_token: Option<Token<'source>>,
}Fields§
§let_token: Option<Token<'source>>§binding: Option<Binding<'source>>§equals_token: Option<Token<'source>>§case: Option<Box<Expression<'source>>>§arrow_token: Option<Token<'source>>§expression: Option<Box<Expression<'source>>>§semicolon_token: Option<Token<'source>>Trait Implementations§
impl<'source> Eq for MatchCase<'source>
impl<'source> StructuralPartialEq for MatchCase<'source>
Auto Trait Implementations§
impl<'source> Freeze for MatchCase<'source>
impl<'source> RefUnwindSafe for MatchCase<'source>
impl<'source> Send for MatchCase<'source>
impl<'source> Sync for MatchCase<'source>
impl<'source> Unpin for MatchCase<'source>
impl<'source> UnwindSafe for MatchCase<'source>
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