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