pub struct MatchCase<R = TextRange> {
pub range: EmptyRange<R>,
pub pattern: Pattern<R>,
pub guard: Option<Box<Expr<R>, Global>>,
pub body: Vec<Stmt<R>, Global>,
}
Expand description
See also match_case
Fields§
§range: EmptyRange<R>
§pattern: Pattern<R>
§guard: Option<Box<Expr<R>, Global>>
§body: Vec<Stmt<R>, Global>
Trait Implementations§
source§impl<R> PartialEq<MatchCase<R>> for MatchCase<R>where
R: PartialEq<R>,
impl<R> PartialEq<MatchCase<R>> for MatchCase<R>where R: PartialEq<R>,
impl<R> StructuralPartialEq for MatchCase<R>
Auto Trait Implementations§
impl<R> RefUnwindSafe for MatchCase<R>where R: RefUnwindSafe,
impl<R> Send for MatchCase<R>where R: Send,
impl<R> Sync for MatchCase<R>where R: Sync,
impl<R> Unpin for MatchCase<R>where R: Unpin,
impl<R> UnwindSafe for MatchCase<R>where R: UnwindSafe,
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