pub enum PrimaryLiteral {
Number(Box<Number>),
TimeLiteral(Box<TimeLiteral>),
UnbasedUnsizedLiteral(Box<UnbasedUnsizedLiteral>),
StringLiteral(Box<StringLiteral>),
}
Variants§
Number(Box<Number>)
TimeLiteral(Box<TimeLiteral>)
UnbasedUnsizedLiteral(Box<UnbasedUnsizedLiteral>)
StringLiteral(Box<StringLiteral>)
Trait Implementations§
source§impl Clone for PrimaryLiteral
impl Clone for PrimaryLiteral
source§fn clone(&self) -> PrimaryLiteral
fn clone(&self) -> PrimaryLiteral
Returns a copy 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 PrimaryLiteral
impl Debug for PrimaryLiteral
source§impl<'a> From<&'a PrimaryLiteral> for RefNode<'a>
impl<'a> From<&'a PrimaryLiteral> for RefNode<'a>
source§fn from(x: &'a PrimaryLiteral) -> Self
fn from(x: &'a PrimaryLiteral) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a PrimaryLiteral> for RefNodes<'a>
impl<'a> From<&'a PrimaryLiteral> for RefNodes<'a>
source§fn from(x: &'a PrimaryLiteral) -> Self
fn from(x: &'a PrimaryLiteral) -> Self
Converts to this type from the input type.
source§impl From<PrimaryLiteral> for AnyNode
impl From<PrimaryLiteral> for AnyNode
source§fn from(x: PrimaryLiteral) -> Self
fn from(x: PrimaryLiteral) -> Self
Converts to this type from the input type.
source§impl<'a> IntoIterator for &'a PrimaryLiteral
impl<'a> IntoIterator for &'a PrimaryLiteral
source§impl PartialEq for PrimaryLiteral
impl PartialEq for PrimaryLiteral
source§fn eq(&self, other: &PrimaryLiteral) -> bool
fn eq(&self, other: &PrimaryLiteral) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> TryFrom<&'a PrimaryLiteral> for Locate
impl<'a> TryFrom<&'a PrimaryLiteral> for Locate
source§impl TryFrom<AnyNode> for PrimaryLiteral
impl TryFrom<AnyNode> for PrimaryLiteral
source§impl TryFrom<PrimaryLiteral> for Locate
impl TryFrom<PrimaryLiteral> for Locate
impl StructuralPartialEq for PrimaryLiteral
Auto Trait Implementations§
impl RefUnwindSafe for PrimaryLiteral
impl Send for PrimaryLiteral
impl Sync for PrimaryLiteral
impl Unpin for PrimaryLiteral
impl UnwindSafe for PrimaryLiteral
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