Enum sv_parser::PragmaValue
source · pub enum PragmaValue {
Paren(Box<PragmaValueParen, Global>),
Number(Box<Number, Global>),
StringLiteral(Box<StringLiteral, Global>),
Identifier(Box<Identifier, Global>),
}
Variants§
Paren(Box<PragmaValueParen, Global>)
Number(Box<Number, Global>)
StringLiteral(Box<StringLiteral, Global>)
Identifier(Box<Identifier, Global>)
Trait Implementations§
source§impl Clone for PragmaValue
impl Clone for PragmaValue
source§fn clone(&self) -> PragmaValue
fn clone(&self) -> PragmaValue
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 PragmaValue
impl Debug for PragmaValue
source§impl<'a> From<&'a PragmaValue> for RefNode<'a>
impl<'a> From<&'a PragmaValue> for RefNode<'a>
source§fn from(x: &'a PragmaValue) -> RefNode<'a>
fn from(x: &'a PragmaValue) -> RefNode<'a>
Converts to this type from the input type.
source§impl<'a> From<&'a PragmaValue> for RefNodes<'a>
impl<'a> From<&'a PragmaValue> for RefNodes<'a>
source§fn from(x: &'a PragmaValue) -> RefNodes<'a>
fn from(x: &'a PragmaValue) -> RefNodes<'a>
Converts to this type from the input type.
source§impl From<PragmaValue> for AnyNode
impl From<PragmaValue> for AnyNode
source§fn from(x: PragmaValue) -> AnyNode
fn from(x: PragmaValue) -> AnyNode
Converts to this type from the input type.
source§impl<'a> IntoIterator for &'a PragmaValue
impl<'a> IntoIterator for &'a PragmaValue
source§impl PartialEq<PragmaValue> for PragmaValue
impl PartialEq<PragmaValue> for PragmaValue
source§fn eq(&self, other: &PragmaValue) -> bool
fn eq(&self, other: &PragmaValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.