pub struct SimulationParameters {
pub force_charge: f32,
pub force_spring: f32,
pub force_max: f32,
pub node_speed: f32,
pub damping_factor: f32,
}Expand description
Parameters to control the simulation of the force graph.
Fields§
§force_charge: f32§force_spring: f32§force_max: f32§node_speed: f32§damping_factor: f32Trait Implementations§
Source§impl Clone for SimulationParameters
impl Clone for SimulationParameters
Source§fn clone(&self) -> SimulationParameters
fn clone(&self) -> SimulationParameters
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 SimulationParameters
impl Debug for SimulationParameters
Auto Trait Implementations§
impl Freeze for SimulationParameters
impl RefUnwindSafe for SimulationParameters
impl Send for SimulationParameters
impl Sync for SimulationParameters
impl Unpin for SimulationParameters
impl UnwindSafe for SimulationParameters
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