[][src]Struct egg::SymbolLang

pub struct SymbolLang {
    pub op: Symbol,
    pub children: Vec<Id>,
}

A simple language used for testing.

Fields

op: Symbol

The operator for an enode

children: Vec<Id>

The enode's children Ids

Implementations

impl SymbolLang[src]

pub fn new(op: impl Into<Symbol>, children: Vec<Id>) -> Self[src]

Create an enode with the given string and children

pub fn leaf(op: impl Into<Symbol>) -> Self[src]

Create childless enode with the given string

Trait Implementations

impl Clone for SymbolLang[src]

impl Debug for SymbolLang[src]

impl Eq for SymbolLang[src]

impl Hash for SymbolLang[src]

impl Language for SymbolLang[src]

impl Ord for SymbolLang[src]

impl PartialEq<SymbolLang> for SymbolLang[src]

impl PartialOrd<SymbolLang> for SymbolLang[src]

impl StructuralEq for SymbolLang[src]

impl StructuralPartialEq for SymbolLang[src]

Auto Trait Implementations

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.