pub struct MatchStatement {
pub subject: Expression,
pub cases: Vec<CaseClause>,
}Expand description
Match statement for pattern matching
Fields§
§subject: ExpressionExpression to match against
cases: Vec<CaseClause>Case clauses
Trait Implementations§
Source§impl Clone for MatchStatement
impl Clone for MatchStatement
Source§fn clone(&self) -> MatchStatement
fn clone(&self) -> MatchStatement
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 MatchStatement
impl Debug for MatchStatement
Source§impl<'de> Deserialize<'de> for MatchStatement
impl<'de> Deserialize<'de> for MatchStatement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MatchStatement
impl PartialEq for MatchStatement
Source§impl Serialize for MatchStatement
impl Serialize for MatchStatement
impl StructuralPartialEq for MatchStatement
Auto Trait Implementations§
impl Freeze for MatchStatement
impl RefUnwindSafe for MatchStatement
impl Send for MatchStatement
impl Sync for MatchStatement
impl Unpin for MatchStatement
impl UnwindSafe for MatchStatement
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