pub enum ArgPattern {
Keyword(String),
Symbol(String),
Group(Vec<Spanned<ArgPattern>>),
}
Expand description
Represents an argument pattern, i.e. the mini language used to match macros.
Variants§
Trait Implementations§
Source§impl Clone for ArgPattern
impl Clone for ArgPattern
Source§fn clone(&self) -> ArgPattern
fn clone(&self) -> ArgPattern
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 ArgPattern
impl Debug for ArgPattern
Source§impl PartialEq for ArgPattern
impl PartialEq for ArgPattern
Source§impl TryFrom<AST> for ArgPattern
impl TryFrom<AST> for ArgPattern
impl StructuralPartialEq for ArgPattern
Auto Trait Implementations§
impl Freeze for ArgPattern
impl RefUnwindSafe for ArgPattern
impl !Send for ArgPattern
impl !Sync for ArgPattern
impl Unpin for ArgPattern
impl UnwindSafe for ArgPattern
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