pub enum ArmPatternNode {
WildCard,
As(String, ArmPatternId),
Constructor(String, Vec<ArmPatternId>),
TupleConstructor(Vec<ArmPatternId>),
RecordConstructor(Vec<(String, ArmPatternId)>),
ListConstructor(Vec<ArmPatternId>),
Literal(ExprId),
}Variants§
WildCard
As(String, ArmPatternId)
Constructor(String, Vec<ArmPatternId>)
TupleConstructor(Vec<ArmPatternId>)
RecordConstructor(Vec<(String, ArmPatternId)>)
ListConstructor(Vec<ArmPatternId>)
Literal(ExprId)
A literal pattern (identifier, option node, result node, etc.) is just
an expression embedded in the pattern — we keep the ExprId reference.
Trait Implementations§
Source§impl Clone for ArmPatternNode
impl Clone for ArmPatternNode
Source§fn clone(&self) -> ArmPatternNode
fn clone(&self) -> ArmPatternNode
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 moreAuto Trait Implementations§
impl Freeze for ArmPatternNode
impl RefUnwindSafe for ArmPatternNode
impl Send for ArmPatternNode
impl Sync for ArmPatternNode
impl Unpin for ArmPatternNode
impl UnsafeUnpin for ArmPatternNode
impl UnwindSafe for ArmPatternNode
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