pub enum AstPattern {
Value {
value: i64,
span: Option<Span>,
},
RangeInclusive {
start: i64,
end: i64,
span: Option<Span>,
},
Wildcard {
span: Option<Span>,
},
}Variants§
Trait Implementations§
Source§impl Clone for AstPattern
impl Clone for AstPattern
Source§fn clone(&self) -> AstPattern
fn clone(&self) -> AstPattern
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 AstPattern
impl Debug for AstPattern
Source§impl PartialEq for AstPattern
impl PartialEq for AstPattern
impl StructuralPartialEq for AstPattern
Auto Trait Implementations§
impl Freeze for AstPattern
impl RefUnwindSafe for AstPattern
impl Send for AstPattern
impl Sync for AstPattern
impl Unpin for AstPattern
impl UnsafeUnpin for AstPattern
impl UnwindSafe for AstPattern
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