#[repr(C)]pub struct LayoutParams {
pub node_count: u32,
pub edge_count: u32,
pub tree_size: u32,
pub dt: f32,
pub damping: f32,
pub repulsion: f32,
pub attraction: f32,
pub theta: f32,
pub gravity: f32,
pub ideal_length: f32,
}Expand description
Layout parameters for the force-directed algorithm.
Fields§
§node_count: u32Number of nodes
edge_count: u32Number of edges
tree_size: u32Number of quadtree nodes
dt: f32Time step
damping: f32Damping factor (0-1, higher = more damping)
repulsion: f32Repulsion strength
attraction: f32Attraction strength
theta: f32Barnes-Hut theta (0.5-1.0, higher = faster but less accurate)
gravity: f32Center gravity strength
ideal_length: f32Ideal edge length
Trait Implementations§
Source§impl Clone for LayoutParams
impl Clone for LayoutParams
Source§fn clone(&self) -> LayoutParams
fn clone(&self) -> LayoutParams
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 LayoutParams
impl Debug for LayoutParams
Source§impl Default for LayoutParams
impl Default for LayoutParams
impl Copy for LayoutParams
impl Pod for LayoutParams
Auto Trait Implementations§
impl Freeze for LayoutParams
impl RefUnwindSafe for LayoutParams
impl Send for LayoutParams
impl Sync for LayoutParams
impl Unpin for LayoutParams
impl UnsafeUnpin for LayoutParams
impl UnwindSafe for LayoutParams
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.