pub struct Port {
pub name: String,
pub kind: &'static str,
}Expand description
A node’s input or output.
Fields§
§name: StringIts label, written beside it.
kind: &'static strIts kind: its colour, and what it can connect to (Graph::can_connect).
Trait Implementations§
impl StructuralPartialEq for Port
Auto Trait Implementations§
impl Forget for Port
impl Freeze for Port
impl Move 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