Enum sv_parser::PragmaValue
source · pub enum PragmaValue {
Paren(Box<PragmaValueParen>),
Number(Box<Number>),
StringLiteral(Box<StringLiteral>),
Identifier(Box<Identifier>),
}
Variants§
Paren(Box<PragmaValueParen>)
Number(Box<Number>)
StringLiteral(Box<StringLiteral>)
Identifier(Box<Identifier>)
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 for PragmaValue
impl PartialEq 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 ==
.source§impl<'a> TryFrom<&'a PragmaValue> for Locate
impl<'a> TryFrom<&'a PragmaValue> for Locate
source§impl TryFrom<AnyNode> for PragmaValue
impl TryFrom<AnyNode> for PragmaValue
source§impl TryFrom<PragmaValue> for Locate
impl TryFrom<PragmaValue> for Locate
impl StructuralPartialEq for PragmaValue
Auto Trait Implementations§
impl RefUnwindSafe for PragmaValue
impl Send for PragmaValue
impl Sync for PragmaValue
impl Unpin for PragmaValue
impl UnwindSafe for PragmaValue
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