pub struct SignedSumMap<K: Ord + Clone> { /* private fields */ }Expand description
Map of K → SignedSum — convergent per-key net signed exposure.
Merge is the per-key SignedSum merge over the union of keys, so the
map inherits the same commutative / associative / idempotent guarantee.
Implementations§
Trait Implementations§
Source§impl<K: Clone + Ord + Clone> Clone for SignedSumMap<K>
impl<K: Clone + Ord + Clone> Clone for SignedSumMap<K>
Source§fn clone(&self) -> SignedSumMap<K>
fn clone(&self) -> SignedSumMap<K>
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<K: Default + Ord + Clone> Default for SignedSumMap<K>
impl<K: Default + Ord + Clone> Default for SignedSumMap<K>
Source§fn default() -> SignedSumMap<K>
fn default() -> SignedSumMap<K>
Returns the “default value” for a type. Read more
Source§impl<'de, K> Deserialize<'de> for SignedSumMap<K>
impl<'de, K> Deserialize<'de> for SignedSumMap<K>
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<K: PartialEq + Ord + Clone> PartialEq for SignedSumMap<K>
impl<K: PartialEq + Ord + Clone> PartialEq for SignedSumMap<K>
Source§fn eq(&self, other: &SignedSumMap<K>) -> bool
fn eq(&self, other: &SignedSumMap<K>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<K> Serialize for SignedSumMap<K>
impl<K> Serialize for SignedSumMap<K>
impl<K: Eq + Ord + Clone> Eq for SignedSumMap<K>
impl<K: Ord + Clone> StructuralPartialEq for SignedSumMap<K>
Auto Trait Implementations§
impl<K> Freeze for SignedSumMap<K>
impl<K> RefUnwindSafe for SignedSumMap<K>where
K: RefUnwindSafe,
impl<K> Send for SignedSumMap<K>where
K: Send,
impl<K> Sync for SignedSumMap<K>where
K: Sync,
impl<K> Unpin for SignedSumMap<K>
impl<K> UnsafeUnpin for SignedSumMap<K>
impl<K> UnwindSafe for SignedSumMap<K>where
K: RefUnwindSafe,
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