#[non_exhaustive]pub struct EdgeLayout {
pub from: String,
pub to: String,
pub desc_index: usize,
pub waypoints: Vec<Point>,
pub broken: bool,
}Expand description
Routing of one edge: a waypoint polyline from the source card border to the target card border (endpoints inclusive).
Renderers draw straight polylines or splines through the waypoints; multi-rank edges carry one interior waypoint per crossed rank gap.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.from: StringSource node id, echoed from the input.
to: StringTarget node id, echoed from the input.
desc_index: usizeIndex of this edge in GraphDesc::edges, so caller metadata
(label/style) maps back even for duplicate from/to pairs.
waypoints: Vec<Point>Polyline in cells, source border first, target border last.
broken: boolTrue when the cycle-breaking heuristic reversed this edge to
obtain a DAG. The polyline still runs from from to to (it
travels against the flow axis); it is MARKED, never silently
reordered, so renderers can style back edges distinctly.
Implementations§
Trait Implementations§
Source§impl Clone for EdgeLayout
impl Clone for EdgeLayout
Source§fn clone(&self) -> EdgeLayout
fn clone(&self) -> EdgeLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EdgeLayout
impl Debug for EdgeLayout
impl Eq for EdgeLayout
Source§impl PartialEq for EdgeLayout
impl PartialEq for EdgeLayout
impl StructuralPartialEq for EdgeLayout
Auto Trait Implementations§
impl Freeze for EdgeLayout
impl RefUnwindSafe for EdgeLayout
impl Send for EdgeLayout
impl Sync for EdgeLayout
impl Unpin for EdgeLayout
impl UnsafeUnpin for EdgeLayout
impl UnwindSafe for EdgeLayout
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