pub enum InterfaceItem<'a> {
Port(Box<(PortDeclaration<'a>, Metadata<'a>)>),
NonPort(Box<NonPortInterfaceItem<'a>>),
}Variants§
Port(Box<(PortDeclaration<'a>, Metadata<'a>)>)
NonPort(Box<NonPortInterfaceItem<'a>>)
Implementations§
Source§impl<'a: 'b, 'b> InterfaceItem<'a>
impl<'a: 'b, 'b> InterfaceItem<'a>
Sourcepub fn iter(&'b self) -> NodeIter<'a, 'b> ⓘ
pub fn iter(&'b self) -> NodeIter<'a, 'b> ⓘ
Iterate across the InterfaceItem and its children
Trait Implementations§
Source§impl<'a> Clone for InterfaceItem<'a>
impl<'a> Clone for InterfaceItem<'a>
Source§fn clone(&self) -> InterfaceItem<'a>
fn clone(&self) -> InterfaceItem<'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 InterfaceItem<'a>
impl<'a> Debug for InterfaceItem<'a>
Source§impl<'a: 'b, 'b> From<&'b InterfaceItem<'a>> for Node<'a, 'b>
impl<'a: 'b, 'b> From<&'b InterfaceItem<'a>> for Node<'a, 'b>
Source§fn from(value: &'b InterfaceItem<'a>) -> Self
fn from(value: &'b InterfaceItem<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a: 'b, 'b> IntoIterator for &'b InterfaceItem<'a>
impl<'a: 'b, 'b> IntoIterator for &'b InterfaceItem<'a>
Source§impl<'a: 'b, 'b> Nodes<'a, 'b> for InterfaceItem<'a>
impl<'a: 'b, 'b> Nodes<'a, 'b> for InterfaceItem<'a>
Source§impl<'a> PartialEq for InterfaceItem<'a>
impl<'a> PartialEq for InterfaceItem<'a>
impl<'a> StructuralPartialEq for InterfaceItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for InterfaceItem<'a>
impl<'a> RefUnwindSafe for InterfaceItem<'a>
impl<'a> Send for InterfaceItem<'a>
impl<'a> Sync for InterfaceItem<'a>
impl<'a> Unpin for InterfaceItem<'a>
impl<'a> UnsafeUnpin for InterfaceItem<'a>
impl<'a> UnwindSafe for InterfaceItem<'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