pub struct PnCounter<V>where
V: Display + AddAssign + Clone + Copy + for<'v> Sum<&'v V> + Ord + Add<Output = V> + Sub<Output = V> + Default,{
pub id: NodeId,
pub pos_counter: GCounter<V>,
pub neg_counter: GCounter<V>,
pub default_value: V,
}Fields§
§id: NodeId§pos_counter: GCounter<V>§neg_counter: GCounter<V>§default_value: VImplementations§
Auto Trait Implementations§
impl<V> Freeze for PnCounter<V>where
V: Freeze,
impl<V> RefUnwindSafe for PnCounter<V>where
V: RefUnwindSafe,
impl<V> Send for PnCounter<V>where
V: Send,
impl<V> Sync for PnCounter<V>where
V: Sync,
impl<V> Unpin for PnCounter<V>where
V: Unpin,
impl<V> UnwindSafe for PnCounter<V>where
V: UnwindSafe,
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