pub trait LayoutAlgorithm<N, E> {
// Required methods
fn name(&self) -> &str;
fn apply(&mut self, graph: &mut Graph<N, E>) -> Result<()>;
// Provided methods
fn is_running(&self) -> bool { ... }
fn stop(&mut self) -> Result<()> { ... }
fn progress(&self) -> f64 { ... }
fn can_interrupt(&self) -> bool { ... }
}Expand description
Trait for layout algorithms
Required Methods§
Provided Methods§
Sourcefn is_running(&self) -> bool
fn is_running(&self) -> bool
Check if the algorithm is running
Sourcefn can_interrupt(&self) -> bool
fn can_interrupt(&self) -> bool
Check if the algorithm can be interrupted