pub enum LiteralPattern<'tree> {
BooleanLiteral(Box<BooleanLiteral<'tree>>),
CharLiteral(Box<CharLiteral<'tree>>),
FloatLiteral(Box<FloatLiteral<'tree>>),
IntegerLiteral(Box<IntegerLiteral<'tree>>),
NegativeLiteral(Box<NegativeLiteral<'tree>>),
RawStringLiteral(Box<RawStringLiteral<'tree>>),
StringLiteral(Box<StringLiteral<'tree>>),
}Variants§
BooleanLiteral(Box<BooleanLiteral<'tree>>)
CharLiteral(Box<CharLiteral<'tree>>)
FloatLiteral(Box<FloatLiteral<'tree>>)
IntegerLiteral(Box<IntegerLiteral<'tree>>)
NegativeLiteral(Box<NegativeLiteral<'tree>>)
RawStringLiteral(Box<RawStringLiteral<'tree>>)
StringLiteral(Box<StringLiteral<'tree>>)
Trait Implementations§
Source§impl<'tree> Clone for LiteralPattern<'tree>
impl<'tree> Clone for LiteralPattern<'tree>
Source§fn clone(&self) -> LiteralPattern<'tree>
fn clone(&self) -> LiteralPattern<'tree>
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<'tree> Debug for LiteralPattern<'tree>
impl<'tree> Debug for LiteralPattern<'tree>
Source§impl<'tree> FromNode<'tree> for LiteralPattern<'tree>
impl<'tree> FromNode<'tree> for LiteralPattern<'tree>
Source§impl<'tree> PartialEq for LiteralPattern<'tree>
impl<'tree> PartialEq for LiteralPattern<'tree>
Source§impl Spanned for LiteralPattern<'_>
impl Spanned for LiteralPattern<'_>
impl<'tree> Eq for LiteralPattern<'tree>
impl<'tree> StructuralPartialEq for LiteralPattern<'tree>
Auto Trait Implementations§
impl<'tree> Freeze for LiteralPattern<'tree>
impl<'tree> RefUnwindSafe for LiteralPattern<'tree>
impl<'tree> Send for LiteralPattern<'tree>
impl<'tree> Sync for LiteralPattern<'tree>
impl<'tree> Unpin for LiteralPattern<'tree>
impl<'tree> UnsafeUnpin for LiteralPattern<'tree>
impl<'tree> UnwindSafe for LiteralPattern<'tree>
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