pub struct UnionMergeStrategy { /* private fields */ }
Expand description
A MapMergeStrategy
where key-value pairs whose key is only present in one input map
are added to the merged map.
Top
values and their corresponding keys are also preserved in the merged map.
The strategy is meant to be used for maps where the values associated to keys not present in the map have an implicit bottom value of the value abstract domain associated to them.
Trait Implementations§
source§impl Clone for UnionMergeStrategy
impl Clone for UnionMergeStrategy
source§fn clone(&self) -> UnionMergeStrategy
fn clone(&self) -> UnionMergeStrategy
Returns a copy of the value. Read more
1.0.0 · 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 UnionMergeStrategy
impl Debug for UnionMergeStrategy
source§impl<'de> Deserialize<'de> for UnionMergeStrategy
impl<'de> Deserialize<'de> for UnionMergeStrategy
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: Ord + Clone, V: AbstractDomain> MapMergeStrategy<K, V> for UnionMergeStrategy
impl<K: Ord + Clone, V: AbstractDomain> MapMergeStrategy<K, V> for UnionMergeStrategy
source§fn merge_map_with(map: &mut BTreeMap<K, V>, other: &BTreeMap<K, V>)
fn merge_map_with(map: &mut BTreeMap<K, V>, other: &BTreeMap<K, V>)
Merges
map
with other
by modifying map
in-place.source§impl PartialEq for UnionMergeStrategy
impl PartialEq for UnionMergeStrategy
source§fn eq(&self, other: &UnionMergeStrategy) -> bool
fn eq(&self, other: &UnionMergeStrategy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for UnionMergeStrategy
impl Serialize for UnionMergeStrategy
impl Eq for UnionMergeStrategy
impl StructuralEq for UnionMergeStrategy
impl StructuralPartialEq for UnionMergeStrategy
Auto Trait Implementations§
impl RefUnwindSafe for UnionMergeStrategy
impl Send for UnionMergeStrategy
impl Sync for UnionMergeStrategy
impl Unpin for UnionMergeStrategy
impl UnwindSafe for UnionMergeStrategy
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.