Struct moore_svlog_syntax::ast::SubroutinePortName
source · [−]pub struct SubroutinePortName<'a> {
pub name: Spanned<Name>,
pub dims: Vec<TypeDim<'a>>,
pub expr: Option<Expr<'a>>,
}
Expand description
A single name of a function or task port.
This is the x[3]
part in inout logic [7:0] x[3]
.
Fields
name: Spanned<Name>
The name of the port.
dims: Vec<TypeDim<'a>>
The unpacked dimensions of the port.
expr: Option<Expr<'a>>
The optional default value of the port.
Trait Implementations
sourceimpl<'a> AcceptVisitor<'a> for SubroutinePortName<'a>
impl<'a> AcceptVisitor<'a> for SubroutinePortName<'a>
sourceimpl<'a> Clone for SubroutinePortName<'a>
impl<'a> Clone for SubroutinePortName<'a>
sourcefn clone(&self) -> SubroutinePortName<'a>
fn clone(&self) -> SubroutinePortName<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for SubroutinePortName<'a>
impl<'a> Debug for SubroutinePortName<'a>
sourceimpl<'a> ForEachChild<'a> for SubroutinePortName<'a>
impl<'a> ForEachChild<'a> for SubroutinePortName<'a>
sourcefn for_each_child(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
fn for_each_child(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
Apply a function to each child node.
sourceimpl<'a> ForEachNode<'a> for SubroutinePortName<'a>
impl<'a> ForEachNode<'a> for SubroutinePortName<'a>
sourcefn for_each_node(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
fn for_each_node(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
Apply a function to this node.
sourceimpl<'a> PartialEq<SubroutinePortName<'a>> for SubroutinePortName<'a>
impl<'a> PartialEq<SubroutinePortName<'a>> for SubroutinePortName<'a>
sourcefn eq(&self, other: &SubroutinePortName<'a>) -> bool
fn eq(&self, other: &SubroutinePortName<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SubroutinePortName<'a>) -> bool
fn ne(&self, other: &SubroutinePortName<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> WalkVisitor<'a> for SubroutinePortName<'a>
impl<'a> WalkVisitor<'a> for SubroutinePortName<'a>
impl<'a> Eq for SubroutinePortName<'a>
impl<'a> StructuralEq for SubroutinePortName<'a>
impl<'a> StructuralPartialEq for SubroutinePortName<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for SubroutinePortName<'a>
impl<'a> Send for SubroutinePortName<'a>
impl<'a> Sync for SubroutinePortName<'a>
impl<'a> Unpin for SubroutinePortName<'a>
impl<'a> !UnwindSafe for SubroutinePortName<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more