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