pub struct PriorPartition {
pub cluster_assignments: BTreeMap<String, u32>,
}Expand description
A prior partition snapshot for consecutive-snapshot stability scoring.
§Examples
use sdivi_core::input::PriorPartition;
use std::collections::BTreeMap;
let p = PriorPartition { cluster_assignments: BTreeMap::new() };Fields§
§cluster_assignments: BTreeMap<String, u32>Node ID → community ID mapping.
Trait Implementations§
Source§impl Clone for PriorPartition
impl Clone for PriorPartition
Source§fn clone(&self) -> PriorPartition
fn clone(&self) -> PriorPartition
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 moreSource§impl Debug for PriorPartition
impl Debug for PriorPartition
Source§impl<'de> Deserialize<'de> for PriorPartition
impl<'de> Deserialize<'de> for PriorPartition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PriorPartition
impl PartialEq for PriorPartition
Source§fn eq(&self, other: &PriorPartition) -> bool
fn eq(&self, other: &PriorPartition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PriorPartition
impl Serialize for PriorPartition
impl StructuralPartialEq for PriorPartition
Auto Trait Implementations§
impl Freeze for PriorPartition
impl RefUnwindSafe for PriorPartition
impl Send for PriorPartition
impl Sync for PriorPartition
impl Unpin for PriorPartition
impl UnsafeUnpin for PriorPartition
impl UnwindSafe for PriorPartition
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