pub enum PatternElement {
Variable(VariableRef),
VariableWithFieldIndex(VariableRef, usize),
Wildcard(Node),
}
Variants§
Trait Implementations§
Source§impl Clone for PatternElement
impl Clone for PatternElement
Source§fn clone(&self) -> PatternElement
fn clone(&self) -> PatternElement
Returns a copy 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 PatternElement
impl RefUnwindSafe for PatternElement
impl !Send for PatternElement
impl !Sync for PatternElement
impl Unpin for PatternElement
impl UnwindSafe for PatternElement
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