[][src]Struct egg::Subst

pub struct Subst { /* fields omitted */ }

A substitition mapping Vars to eclass Ids.

Implementations

impl Subst[src]

pub fn with_capacity(capacity: usize) -> Self[src]

Create a Subst with the given initial capacity

pub fn insert(&mut self, var: Var, id: Id) -> Option<Id>[src]

Insert something, returning the old Id if present.

pub fn get(&self, var: Var) -> Option<&Id>[src]

Retrieve a Var, returning None if not present.

Trait Implementations

impl Clone for Subst[src]

impl Debug for Subst[src]

impl Default for Subst[src]

impl Eq for Subst[src]

impl Hash for Subst[src]

impl Index<Var> for Subst[src]

type Output = Id

The returned type after indexing.

impl Ord for Subst[src]

impl PartialEq<Subst> for Subst[src]

impl PartialOrd<Subst> for Subst[src]

impl StructuralEq for Subst[src]

impl StructuralPartialEq for Subst[src]

Auto Trait Implementations

impl RefUnwindSafe for Subst

impl Send for Subst

impl Sync for Subst

impl Unpin for Subst

impl UnwindSafe for Subst

Blanket Implementations

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

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.