pub enum PortDefBodyElement {
InOutDecl(Node<InOutDecl>),
Doc(Node<DocComment>),
Error(Node<ParseErrorNode>),
AttributeDef(Node<AttributeDef>),
AttributeUsage(Node<AttributeUsage>),
ItemUsage(Node<ItemUsage>),
PortUsage(Node<PortUsage>),
}Expand description
Element inside a port definition body (in/out declarations or nested port usages).
Variants§
InOutDecl(Node<InOutDecl>)
Doc(Node<DocComment>)
Error(Node<ParseErrorNode>)
AttributeDef(Node<AttributeDef>)
AttributeUsage(Node<AttributeUsage>)
ItemUsage(Node<ItemUsage>)
PortUsage(Node<PortUsage>)
Trait Implementations§
Source§impl Clone for PortDefBodyElement
impl Clone for PortDefBodyElement
Source§fn clone(&self) -> PortDefBodyElement
fn clone(&self) -> PortDefBodyElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PortDefBodyElement
impl Debug for PortDefBodyElement
impl Eq for PortDefBodyElement
Source§impl PartialEq for PortDefBodyElement
impl PartialEq for PortDefBodyElement
Source§fn eq(&self, other: &PortDefBodyElement) -> bool
fn eq(&self, other: &PortDefBodyElement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PortDefBodyElement
Auto Trait Implementations§
impl Freeze for PortDefBodyElement
impl RefUnwindSafe for PortDefBodyElement
impl Send for PortDefBodyElement
impl Sync for PortDefBodyElement
impl Unpin for PortDefBodyElement
impl UnsafeUnpin for PortDefBodyElement
impl UnwindSafe for PortDefBodyElement
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