pub enum Literal<'ast> {
Undefined,
Null,
True,
False,
Number(&'ast str),
Binary(&'ast str),
String(&'ast str),
RegEx(&'ast str),
}
Variants
Undefined
Null
True
False
Number(&'ast str)
Binary(&'ast str)
String(&'ast str)
RegEx(&'ast str)
Trait Implementations
sourceimpl<'ast> From<Literal<'ast>> for Expression<'ast>
impl<'ast> From<Literal<'ast>> for Expression<'ast>
sourcefn from(val: Literal<'ast>) -> Expression<'ast>
fn from(val: Literal<'ast>) -> Expression<'ast>
Converts to this type from the input type.
sourceimpl<'ast> PartialEq<Literal<'ast>> for Literal<'ast>
impl<'ast> PartialEq<Literal<'ast>> for Literal<'ast>
impl<'ast> Copy for Literal<'ast>
impl<'ast> StructuralPartialEq for Literal<'ast>
Auto Trait Implementations
impl<'ast> RefUnwindSafe for Literal<'ast>
impl<'ast> Send for Literal<'ast>
impl<'ast> Sync for Literal<'ast>
impl<'ast> Unpin for Literal<'ast>
impl<'ast> UnwindSafe for Literal<'ast>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more