pub struct ScalaCaseClause {
pub pattern: ScalaPattern,
pub guard: Option<ScalaExpr>,
pub body: ScalaExpr,
}Expand description
A single arm in a Scala match expression.
Fields§
§pattern: ScalaPattern§guard: Option<ScalaExpr>§body: ScalaExprTrait Implementations§
Source§impl Clone for ScalaCaseClause
impl Clone for ScalaCaseClause
Source§fn clone(&self) -> ScalaCaseClause
fn clone(&self) -> ScalaCaseClause
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 ScalaCaseClause
impl Debug for ScalaCaseClause
Source§impl PartialEq for ScalaCaseClause
impl PartialEq for ScalaCaseClause
impl StructuralPartialEq for ScalaCaseClause
Auto Trait Implementations§
impl Freeze for ScalaCaseClause
impl RefUnwindSafe for ScalaCaseClause
impl Send for ScalaCaseClause
impl Sync for ScalaCaseClause
impl Unpin for ScalaCaseClause
impl UnsafeUnpin for ScalaCaseClause
impl UnwindSafe for ScalaCaseClause
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