pub struct LayoutConfig {
pub horizontal_spacing: f32,
pub vertical_spacing: f32,
pub start_pos: Pos2,
}Expand description
Configuration for tree layout algorithm.
Fields§
§horizontal_spacing: f32Horizontal spacing between nodes at the same level.
vertical_spacing: f32Vertical spacing between levels.
start_pos: Pos2Starting position for the layout.
Trait Implementations§
Source§impl Clone for LayoutConfig
impl Clone for LayoutConfig
Source§fn clone(&self) -> LayoutConfig
fn clone(&self) -> LayoutConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayoutConfig
impl Debug for LayoutConfig
Source§impl Default for LayoutConfig
impl Default for LayoutConfig
Source§impl PartialEq for LayoutConfig
impl PartialEq for LayoutConfig
impl Copy for LayoutConfig
impl StructuralPartialEq for LayoutConfig
Auto Trait Implementations§
impl Freeze for LayoutConfig
impl RefUnwindSafe for LayoutConfig
impl Send for LayoutConfig
impl Sync for LayoutConfig
impl Unpin for LayoutConfig
impl UnwindSafe for LayoutConfig
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