pub struct Edge {
pub src_node: NodeId,
pub src_port: PortId,
pub dst_node: NodeId,
pub dst_port: PortId,
pub port_type: PortType,
}Expand description
Una conexión dirigida entre el puerto de salida de un nodo y el puerto de entrada de otro.
El grafo valida que port_type coincida en ambos extremos
al momento de añadir la conexión.
Fields§
§src_node: NodeId§src_port: PortId§dst_node: NodeId§dst_port: PortId§port_type: PortTypeImplementations§
Trait Implementations§
impl Copy for Edge
impl Eq for Edge
impl StructuralPartialEq for Edge
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnsafeUnpin for Edge
impl UnwindSafe for Edge
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