pub struct CaseBranch {
pub pattern: Spanned<Pattern>,
pub body: Spanned<Expr>,
}Expand description
A branch in a case-of expression.
pattern -> expr
Fields§
§pattern: Spanned<Pattern>§body: Spanned<Expr>Trait Implementations§
Source§impl Clone for CaseBranch
impl Clone for CaseBranch
Source§fn clone(&self) -> CaseBranch
fn clone(&self) -> CaseBranch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CaseBranch
impl Debug for CaseBranch
Source§impl PartialEq for CaseBranch
impl PartialEq for CaseBranch
Source§fn eq(&self, other: &CaseBranch) -> bool
fn eq(&self, other: &CaseBranch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CaseBranch
impl StructuralPartialEq for CaseBranch
Auto Trait Implementations§
impl Freeze for CaseBranch
impl RefUnwindSafe for CaseBranch
impl Send for CaseBranch
impl Sync for CaseBranch
impl Unpin for CaseBranch
impl UnsafeUnpin for CaseBranch
impl UnwindSafe for CaseBranch
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