Struct sway_core::language::parsed::MatchExpression
source · pub struct MatchExpression {
pub value: Box<Expression>,
pub branches: Vec<MatchBranch>,
}
Fields
value: Box<Expression>
branches: Vec<MatchBranch>
Trait Implementations
sourceimpl Clone for MatchExpression
impl Clone for MatchExpression
sourcefn clone(&self) -> MatchExpression
fn clone(&self) -> MatchExpression
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for MatchExpression
impl Send for MatchExpression
impl Sync for MatchExpression
impl Unpin for MatchExpression
impl UnwindSafe for MatchExpression
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more