pub struct Edge {
pub from: String,
pub to: String,
}Expand description
A static-route edge (from, to). Dynamic routing via Goto::Send /
Goto::Multiple only surfaces what the node can go to if the graph
builder declared it via crate::builder::Graph::edge.
Fields§
§from: StringSource node name.
to: StringDestination node name (or __END__).
Trait Implementations§
Source§impl Ord for Edge
impl Ord for Edge
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Edge
impl PartialOrd 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