Struct cwe_checker_lib::abstract_domain::MergeTopStrategy
source · pub struct MergeTopStrategy { /* private fields */ }Expand description
A MapMergeStrategy where for every key that only occurs in one input map of the merge function
the corresponding value is merged with Top before being added to the merged map.
Furthermore, keys whose values are merged to the Top value are removed from the merged map.
The strategy is an alternative to the IntersectMergeStrategy
in cases where the Top value of the value domain is not a maximal element of the abstract domain
and should instead be interpreted as a default element assigned to all keys not present in a domain map.
Trait Implementations§
source§impl Clone for MergeTopStrategy
impl Clone for MergeTopStrategy
source§fn clone(&self) -> MergeTopStrategy
fn clone(&self) -> MergeTopStrategy
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 MergeTopStrategy
impl Debug for MergeTopStrategy
source§impl<'de> Deserialize<'de> for MergeTopStrategy
impl<'de> Deserialize<'de> for MergeTopStrategy
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 + HasTop> MapMergeStrategy<K, V> for MergeTopStrategy
impl<K: Ord + Clone, V: AbstractDomain + HasTop> MapMergeStrategy<K, V> for MergeTopStrategy
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 MergeTopStrategy
impl PartialEq for MergeTopStrategy
source§fn eq(&self, other: &MergeTopStrategy) -> bool
fn eq(&self, other: &MergeTopStrategy) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for MergeTopStrategy
impl Serialize for MergeTopStrategy
impl Eq for MergeTopStrategy
impl StructuralEq for MergeTopStrategy
impl StructuralPartialEq for MergeTopStrategy
Auto Trait Implementations§
impl RefUnwindSafe for MergeTopStrategy
impl Send for MergeTopStrategy
impl Sync for MergeTopStrategy
impl Unpin for MergeTopStrategy
impl UnwindSafe for MergeTopStrategy
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.