pub struct Port { /* private fields */ }Expand description
A typed port belonging to a node.
Implementations§
Source§impl Port
impl Port
Sourcepub fn new(
id: PortId,
direction: PortDirection,
type_tag: &str,
) -> Result<Self, GraphError>
pub fn new( id: PortId, direction: PortDirection, type_tag: &str, ) -> Result<Self, GraphError>
Creates a port. type_tag must not be empty.
Sourcepub const fn direction(&self) -> PortDirection
pub const fn direction(&self) -> PortDirection
Returns the direction used for connection validation.
Trait Implementations§
impl Eq for Port
impl StructuralPartialEq for Port
Auto Trait Implementations§
impl Freeze for Port
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl UnsafeUnpin for Port
impl UnwindSafe for Port
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