[][src]Struct gf::support::lattice::HashLattice

pub struct HashLattice<K: Clone + Hash + Eq, V: Clone + Eq> { /* fields omitted */ }

Lattice backed by a hash map.

This lattice has no new constructor. Instead, use Lattice::bottom or Lattice::top to create a new hash lattice.

Methods

impl<K: Clone + Hash + Eq, V: Clone + Eq> HashLattice<K, V>[src]

pub fn get(&self, key: &K) -> FlatLattice<&V>[src]

Return element for given key.

pub fn set(&mut self, key: K, value: FlatLattice<V>)[src]

Set element for given key.

pub fn set_meet(&mut self, key: K, value: FlatLattice<V>)[src]

Set element for given key by applying the meet operation.

pub fn set_join(&mut self, key: K, value: FlatLattice<V>)[src]

Set element for given key by applying the join operation.

Trait Implementations

impl<K: Clone + Hash + Eq, V: Clone + Eq> Lattice for HashLattice<K, V>[src]

impl<K: Clone + Hash + Eq, V: Clone + Eq> Clone for HashLattice<K, V>[src]

impl<K: Eq + Clone + Hash, V: Eq + Clone> Eq for HashLattice<K, V>[src]

impl<K: PartialEq + Clone + Hash + Eq, V: PartialEq + Clone + Eq> PartialEq<HashLattice<K, V>> for HashLattice<K, V>[src]

impl<K: Debug + Clone + Hash + Eq, V: Debug + Clone + Eq> Debug for HashLattice<K, V>[src]

impl<K: Clone + Hash + Eq, V: Clone + Eq> StructuralPartialEq for HashLattice<K, V>[src]

impl<K: Clone + Hash + Eq, V: Clone + Eq> StructuralEq for HashLattice<K, V>[src]

Auto Trait Implementations

impl<K, V> Send for HashLattice<K, V> where
    K: Send,
    V: Send

impl<K, V> Sync for HashLattice<K, V> where
    K: Sync,
    V: Sync

impl<K, V> Unpin for HashLattice<K, V> where
    K: Unpin,
    V: Unpin

impl<K, V> UnwindSafe for HashLattice<K, V> where
    K: UnwindSafe,
    V: UnwindSafe

impl<K, V> RefUnwindSafe for HashLattice<K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]