pub struct Layout {
pub bounds: Rect,
pub nodes: HashMap<String, PositionedNode>,
pub edges: Vec<Edge>,
}Expand description
Layout result containing positioned elements
Fields§
§bounds: RectBounding box of all elements in the layout.
nodes: HashMap<String, PositionedNode>Map of node IDs to their positioned nodes.
edges: Vec<Edge>List of edges connecting the nodes.
Implementations§
Trait Implementations§
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