pub struct IntersectMergeStrategy { /* private fields */ }
Expand description
A MapMergeStrategy
where the merge function only keeps keys that are
present in both input maps.
Furthermore, keys whose values are merged to the Top
value are also
removed from the merged map.
The strategy is meant to be used for maps, where keys not present in the map
have an implicit Top
value associated to them. The strategy implicitly
assumes that the Top
value of the value abstract domain is an actual
maximal value of the domain.
Trait Implementations§
source§impl Clone for IntersectMergeStrategy
impl Clone for IntersectMergeStrategy
source§fn clone(&self) -> IntersectMergeStrategy
fn clone(&self) -> IntersectMergeStrategy
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 IntersectMergeStrategy
impl Debug for IntersectMergeStrategy
source§impl<'de> Deserialize<'de> for IntersectMergeStrategy
impl<'de> Deserialize<'de> for IntersectMergeStrategy
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 IntersectMergeStrategy
impl<K: Ord + Clone, V: AbstractDomain> MapMergeStrategy<K, V> for IntersectMergeStrategy
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 IntersectMergeStrategy
impl PartialEq for IntersectMergeStrategy
source§fn eq(&self, other: &IntersectMergeStrategy) -> bool
fn eq(&self, other: &IntersectMergeStrategy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for IntersectMergeStrategy
impl Serialize for IntersectMergeStrategy
impl Eq for IntersectMergeStrategy
impl StructuralEq for IntersectMergeStrategy
impl StructuralPartialEq for IntersectMergeStrategy
Auto Trait Implementations§
impl RefUnwindSafe for IntersectMergeStrategy
impl Send for IntersectMergeStrategy
impl Sync for IntersectMergeStrategy
impl Unpin for IntersectMergeStrategy
impl UnwindSafe for IntersectMergeStrategy
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.