[][src]Struct egg::egraph::AddResult

pub struct AddResult {
    pub was_there: bool,
    pub id: Id,
}

Struct that tells you whether or not an add modified the EGraph

let mut egraph = EGraph::<TestLang, ()>::default();
let x1 = egraph.add(var("x"));
let x2 = egraph.add(var("x"));

assert_eq!(x1.id, x2.id);
assert!(!x1.was_there);
assert!(x2.was_there);

Fields

was_there: boolid: Id

Trait Implementations

impl Debug for AddResult[src]

Auto Trait Implementations

impl Send for AddResult

impl Sync for AddResult

Blanket Implementations

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

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

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]