pub struct Settings<N, E, Ty = Undirected> {
pub sim_parameters: SimulationParameters<N, E, Ty>,
pub iterations: usize,
pub dt: f32,
pub node_size: u32,
pub node_color: RGBAColor,
pub edge_size: u32,
pub edge_color: RGBAColor,
pub background_color: RGBAColor,
pub print_progress: bool,
pub text_style: Option<TextStyle<'static>>,
}
Expand description
Parameters for drawing the SVG image.
Fields§
§sim_parameters: SimulationParameters<N, E, Ty>
Simulation Parameters
iterations: usize
Number of times to run the simulation
dt: f32
“Granularity of simulation updates”
node_size: u32
The radius of the nodes
node_color: RGBAColor
RGBA color of the nodes
edge_size: u32
Width of the edge lines
edge_color: RGBAColor
RGBA color of the edge lines
background_color: RGBAColor
RGBA background color
print_progress: bool
If true, the simulation will be printed on each
text_style: Option<TextStyle<'static>>
If supplied, the names of nodes will be written
Trait Implementations§
Auto Trait Implementations§
impl<N, E, Ty = Undirected> !RefUnwindSafe for Settings<N, E, Ty>
impl<N, E, Ty = Undirected> !Send for Settings<N, E, Ty>
impl<N, E, Ty = Undirected> !Sync for Settings<N, E, Ty>
impl<N, E, Ty> Unpin for Settings<N, E, Ty>
impl<N, E, Ty = Undirected> !UnwindSafe for Settings<N, E, Ty>
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