pub struct InstNameData<'a> {
pub name: Spanned<Name>,
pub dims: Vec<TypeDim<'a>>,
pub conns: Vec<PortConn<'a>>,
}
Expand description
A single module instance.
For example the u0()
in foo u0(), u1();
.
Fields§
§name: Spanned<Name>
The name of the instance.
dims: Vec<TypeDim<'a>>
The unpacked dimensions.
conns: Vec<PortConn<'a>>
The port connections.
Trait Implementations§
Source§impl<'a> AcceptVisitor<'a> for InstNameData<'a>
impl<'a> AcceptVisitor<'a> for InstNameData<'a>
Source§impl<'a> AnyNodeData for InstNameData<'a>
impl<'a> AnyNodeData for InstNameData<'a>
Source§fn get_name(&self) -> Option<Spanned<Name>>
fn get_name(&self) -> Option<Spanned<Name>>
Get this node’s name, or
None
if it does not have one.Source§fn fmt_indefinite(&self, fmt: &mut Formatter<'_>) -> Result
fn fmt_indefinite(&self, fmt: &mut Formatter<'_>) -> Result
Describe this node for diagnostics in indefinite form, e.g. “entity”. Read more
Source§fn fmt_definite(&self, fmt: &mut Formatter<'_>) -> Result
fn fmt_definite(&self, fmt: &mut Formatter<'_>) -> Result
Describe this node for diagnostics in definite form, e.g. “entity
‘top’”. Read more
fn as_data(&self) -> &dyn AnyNodeDatawhere
Self: Sized,
Source§fn format_indefinite(&self) -> FormatNodeIndefinite<'_>where
Self: Sized,
fn format_indefinite(&self) -> FormatNodeIndefinite<'_>where
Self: Sized,
Describe this node for diagnostics in indefinite form, e.g. “entity”.
Source§fn format_definite(&self) -> FormatNodeDefinite<'_>where
Self: Sized,
fn format_definite(&self) -> FormatNodeDefinite<'_>where
Self: Sized,
Describe this node for diagnostics in definite form, e.g. “entity
‘top’”.
Source§fn to_indefinite_string(&self) -> Stringwhere
Self: Sized,
fn to_indefinite_string(&self) -> Stringwhere
Self: Sized,
Describe this node for diagnostics in indefinite form, e.g. “entity”.
Source§fn to_definite_string(&self) -> Stringwhere
Self: Sized,
fn to_definite_string(&self) -> Stringwhere
Self: Sized,
Describe this node for diagnostics in definite form, e.g. “entity
‘top’”.
Source§impl<'a> Clone for InstNameData<'a>
impl<'a> Clone for InstNameData<'a>
Source§fn clone(&self) -> InstNameData<'a>
fn clone(&self) -> InstNameData<'a>
Returns a duplicate 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<'a> Debug for InstNameData<'a>
impl<'a> Debug for InstNameData<'a>
Source§impl<'a> ForEachChild<'a> for InstNameData<'a>
impl<'a> ForEachChild<'a> for InstNameData<'a>
Source§fn 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.
Source§impl<'a> ForEachNode<'a> for InstNameData<'a>
impl<'a> ForEachNode<'a> for InstNameData<'a>
Source§fn 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.
Source§impl<'a> PartialEq for InstNameData<'a>
impl<'a> PartialEq for InstNameData<'a>
impl<'a> Eq for InstNameData<'a>
impl<'a> StructuralPartialEq for InstNameData<'a>
Auto Trait Implementations§
impl<'a> Freeze for InstNameData<'a>
impl<'a> !RefUnwindSafe for InstNameData<'a>
impl<'a> Send for InstNameData<'a>
impl<'a> Sync for InstNameData<'a>
impl<'a> Unpin for InstNameData<'a>
impl<'a> !UnwindSafe for InstNameData<'a>
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