pub enum Lit {
Str(Name),
BasedInteger(Option<Name>, bool, char, Name),
UnbasedUnsized(char),
Number(Name, Option<Name>),
Time(Name, Option<Name>, TimeUnit),
}
Expand description
Abstract literals such as strings.
Variants§
Str(Name)
BasedInteger(Option<Name>, bool, char, Name)
UnbasedUnsized(char)
One of '0
, '1
, 'x
, and 'z
.
Number(Name, Option<Name>)
A number given as integer and optional fractional part.
Time(Name, Option<Name>, TimeUnit)
A time literal given as integer part, fractional part, and unit.
Trait Implementations§
Source§impl<'a> ForEachNode<'a> for Lit
impl<'a> ForEachNode<'a> for Lit
Source§fn for_each_node(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
fn for_each_node(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
Apply a function to this node.
Source§impl<'a> WalkVisitor<'a> for Lit
impl<'a> WalkVisitor<'a> for Lit
impl Copy for Lit
impl Eq for Lit
impl StructuralPartialEq for Lit
Auto Trait Implementations§
impl Freeze for Lit
impl RefUnwindSafe for Lit
impl Send for Lit
impl Sync for Lit
impl Unpin for Lit
impl UnwindSafe for Lit
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