pub struct EdgeDesc {
pub from: String,
pub to: String,
pub label: Option<String>,
pub style: Option<String>,
}Expand description
One directed edge between two node ids.
label and style are caller metadata carried through untouched.
Same extensibility class as NodeDesc: plain + Default + FRU.
Fields§
§from: StringSource node id.
to: StringTarget node id.
label: Option<String>Optional display label (v1 renderers place it at the midpoint).
style: Option<String>Optional style hint (opaque to layout).
Implementations§
Trait Implementations§
impl Eq for EdgeDesc
impl StructuralPartialEq for EdgeDesc
Auto Trait Implementations§
impl Freeze for EdgeDesc
impl RefUnwindSafe for EdgeDesc
impl Send for EdgeDesc
impl Sync for EdgeDesc
impl Unpin for EdgeDesc
impl UnsafeUnpin for EdgeDesc
impl UnwindSafe for EdgeDesc
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