pub struct LevelStats {
pub passes: usize,
pub capped: bool,
}Expand description
What one Louvain level did (for tests and the termination harness).
Fields§
§passes: usizeLocal-moving passes made (each a sweep over every node).
capped: boolTrue if the level stopped at MAX_LOUVAIN_PASSES with nodes still
moving, rather than converging.
Trait Implementations§
Source§impl Clone for LevelStats
impl Clone for LevelStats
Source§fn clone(&self) -> LevelStats
fn clone(&self) -> LevelStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LevelStats
Source§impl Debug for LevelStats
impl Debug for LevelStats
Source§impl Default for LevelStats
impl Default for LevelStats
Source§fn default() -> LevelStats
fn default() -> LevelStats
Returns the “default value” for a type. Read more
impl Eq for LevelStats
Source§impl PartialEq for LevelStats
impl PartialEq for LevelStats
impl StructuralPartialEq for LevelStats
Auto Trait Implementations§
impl Freeze for LevelStats
impl RefUnwindSafe for LevelStats
impl Send for LevelStats
impl Sync for LevelStats
impl Unpin for LevelStats
impl UnsafeUnpin for LevelStats
impl UnwindSafe for LevelStats
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