pub struct GraphLayout {
pub w: f64,
pub h: f64,
pub nodes: Vec<PlacedNode>,
pub edges: Vec<Vec<(f64, f64)>>,
pub back: Vec<bool>,
pub layers: usize,
pub bands: Vec<(usize, f64, f64, f64, f64)>,
}Expand description
The laid-out graph.
Fields§
§w: f64§h: f64§nodes: Vec<PlacedNode>§edges: Vec<Vec<(f64, f64)>>Per edge (input order): its points, source → target.
back: Vec<bool>Edges drawn against the layer order (they close a cycle).
layers: usize§bands: Vec<(usize, f64, f64, f64, f64)>Swimlane bands: (lane, x0, y0, x1, y1).
Trait Implementations§
Source§impl Clone for GraphLayout
impl Clone for GraphLayout
Source§impl Debug for GraphLayout
impl Debug for GraphLayout
Source§impl PartialEq for GraphLayout
impl PartialEq for GraphLayout
impl StructuralPartialEq for GraphLayout
Auto Trait Implementations§
impl Forget for GraphLayout
impl Freeze for GraphLayout
impl Move for GraphLayout
impl RefUnwindSafe for GraphLayout
impl Send for GraphLayout
impl Sync for GraphLayout
impl Unpin for GraphLayout
impl UnsafeUnpin for GraphLayout
impl UnwindSafe for GraphLayout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more