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