pub struct PNCounter { /* private fields */ }Expand description
A positive-negative counter CRDT that supports both increment and decrement.
Internally composed of two GCounters: one for increments, one for decrements.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PNCounter
impl<'de> Deserialize<'de> for PNCounter
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
impl Eq for PNCounter
impl StructuralPartialEq for PNCounter
Auto Trait Implementations§
impl Freeze for PNCounter
impl RefUnwindSafe for PNCounter
impl Send for PNCounter
impl Sync for PNCounter
impl Unpin for PNCounter
impl UnsafeUnpin for PNCounter
impl UnwindSafe for PNCounter
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