pub struct PortRef {
pub node: NodeId,
pub port: Symbol,
}Expand description
Reference to a named port on a node.
Fields§
§node: NodeIdThe node that owns the referenced port.
port: SymbolThe referenced port name.
Implementations§
Source§impl PortRef
impl PortRef
Sourcepub fn new(node: impl Into<NodeId>, port: Symbol) -> Self
pub fn new(node: impl Into<NodeId>, port: Symbol) -> Self
Creates a port reference from an explicit node and port symbol.
Sourcepub fn named(node: impl Into<NodeId>, port: impl Into<String>) -> Self
pub fn named(node: impl Into<NodeId>, port: impl Into<String>) -> Self
Creates a port reference from an unqualified port name.
Trait Implementations§
impl Eq for PortRef
impl StructuralPartialEq for PortRef
Auto Trait Implementations§
impl Freeze for PortRef
impl RefUnwindSafe for PortRef
impl Send for PortRef
impl Sync for PortRef
impl Unpin for PortRef
impl UnsafeUnpin for PortRef
impl UnwindSafe for PortRef
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