pub struct Layout(/* private fields */);Expand description
Node positions on the canvas.
Coordinates live beside the graph, not inside Node, for the same reason
comments do: they are keyed by identity and must move when a node is
renamed. They are kept in the same file as the logic, though — a separate
file would drift silently, and a drifted layout scatters the canvas exactly
when the graph most needs reading.
Integers, not floats: canvas positions snap to a grid, and exact values round-trip without formatting decisions.
Implementations§
Trait Implementations§
impl Eq for Layout
impl StructuralPartialEq for Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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