Enum sv_parser::PrimaryLiteral
source · pub enum PrimaryLiteral {
Number(Box<Number, Global>),
TimeLiteral(Box<TimeLiteral, Global>),
UnbasedUnsizedLiteral(Box<UnbasedUnsizedLiteral, Global>),
StringLiteral(Box<StringLiteral, Global>),
}
Variants§
Number(Box<Number, Global>)
TimeLiteral(Box<TimeLiteral, Global>)
UnbasedUnsizedLiteral(Box<UnbasedUnsizedLiteral, Global>)
StringLiteral(Box<StringLiteral, Global>)
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) -> RefNode<'a>
fn from(x: &'a PrimaryLiteral) -> RefNode<'a>
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) -> RefNodes<'a>
fn from(x: &'a PrimaryLiteral) -> RefNodes<'a>
Converts to this type from the input type.
source§impl From<PrimaryLiteral> for AnyNode
impl From<PrimaryLiteral> for AnyNode
source§fn from(x: PrimaryLiteral) -> AnyNode
fn from(x: PrimaryLiteral) -> AnyNode
Converts to this type from the input type.
source§impl<'a> IntoIterator for &'a PrimaryLiteral
impl<'a> IntoIterator for &'a PrimaryLiteral
source§impl PartialEq<PrimaryLiteral> for PrimaryLiteral
impl PartialEq<PrimaryLiteral> 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 ==
.