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 Schematicwhere
*const u8 is !null: Freeze,
PhantomData<(f64, f64)>: Freeze,
PhantomData<Vec<(f64, f64)>>: Freeze,
PhantomData<i32>: Freeze,
impl Move for Schematic
impl RefUnwindSafe for Schematic
impl Send for Schematicwhere
RawVecInner: Send,
impl Sync for Schematicwhere
RawVecInner: Sync,
impl Unpin for Schematic
impl UnsafeUnpin for Schematicwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(f64, f64)>: UnsafeUnpin,
PhantomData<Vec<(f64, f64)>>: UnsafeUnpin,
PhantomData<i32>: UnsafeUnpin,
impl UnwindSafe for Schematicwhere
RawVecInner: UnwindSafe,
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