pub struct Schematic {
pub nodes: Vec<(f64, f64)>,
pub routes: Vec<Vec<(f64, f64)>>,
pub tracks: Vec<i32>,
}Expand description
A schematic: each node’s position and each edge’s route, from its source to its target (in
crate::layout::force’s units; a loop has none), and the track each edge runs on.
Fields§
§nodes: Vec<(f64, f64)>§routes: Vec<Vec<(f64, f64)>>§tracks: Vec<i32>How many line spacings aside each edge runs from its route, to the left of its way from source to target (negative: to the right), so that lines sharing a stretch — two circuits between the same nodes, or lines whose routes meet — are drawn side by side: the views space them by what they draw, in pixels.
Trait Implementations§
impl StructuralPartialEq for Schematic
Auto Trait Implementations§
impl Forget for Schematic
impl Freeze for Schematic
impl Move for Schematic
impl RefUnwindSafe for Schematic
impl Send for Schematic
impl Sync for Schematic
impl Unpin for Schematic
impl UnsafeUnpin for Schematic
impl UnwindSafe for Schematic
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