[−][src]Enum egg::expr::Expr
Variants
Constant(L::Constant)
Variable(L::Variable)
Operator(L::Operator, Vec<Child>)
Methods
impl<L: Language, Child> Expr<L, Child>
[src]
pub fn map_children_result<Child2, F, Error>(
&self,
f: F
) -> Result<Expr<L, Child2>, Error> where
Child: Clone,
F: FnMut(Child) -> Result<Child2, Error>,
[src]
&self,
f: F
) -> Result<Expr<L, Child2>, Error> where
Child: Clone,
F: FnMut(Child) -> Result<Child2, Error>,
pub fn map_children<Child2, F>(&self, f: F) -> Expr<L, Child2> where
Child: Clone,
F: FnMut(Child) -> Child2,
[src]
Child: Clone,
F: FnMut(Child) -> Child2,
pub fn children(&self) -> &[Child]
[src]
pub fn symbol(&self) -> Symbol<L, Child>
[src]
impl<L: Language> Expr<L, Id>
[src]
pub fn update_ids<V>(&self, unionfind: &UnionFind<Id, V>) -> Self
[src]
Trait Implementations
impl<L: Language> From<Expr<L, RecExpr<L>>> for RecExpr<L>
[src]
impl<L: PartialEq + Language, Child: PartialEq> PartialEq<Expr<L, Child>> for Expr<L, Child> where
L::Constant: PartialEq,
L::Variable: PartialEq,
L::Operator: PartialEq,
[src]
L::Constant: PartialEq,
L::Variable: PartialEq,
L::Operator: PartialEq,
impl<L: Language> AsRef<Expr<L, RecExpr<L>>> for RecExpr<L>
[src]
impl<L: Clone + Language, Child: Clone> Clone for Expr<L, Child> where
L::Constant: Clone,
L::Variable: Clone,
L::Operator: Clone,
[src]
L::Constant: Clone,
L::Variable: Clone,
L::Operator: Clone,
fn clone(&self) -> Expr<L, Child>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<L: Eq + Language, Child: Eq> Eq for Expr<L, Child> where
L::Constant: Eq,
L::Variable: Eq,
L::Operator: Eq,
[src]
L::Constant: Eq,
L::Variable: Eq,
L::Operator: Eq,
impl<L: Debug + Language, Child: Debug> Debug for Expr<L, Child> where
L::Constant: Debug,
L::Variable: Debug,
L::Operator: Debug,
[src]
L::Constant: Debug,
L::Variable: Debug,
L::Operator: Debug,
impl<L: Hash + Language, Child: Hash> Hash for Expr<L, Child> where
L::Constant: Hash,
L::Variable: Hash,
L::Operator: Hash,
[src]
L::Constant: Hash,
L::Variable: Hash,
L::Operator: Hash,
fn hash<__HLChild: Hasher>(&self, state: &mut __HLChild)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<L: Language> Borrow<Expr<L, RecExpr<L>>> for RecExpr<L>
[src]
Auto Trait Implementations
impl<L, Child> Send for Expr<L, Child> where
Child: Send,
<L as Language>::Constant: Send,
<L as Language>::Operator: Send,
<L as Language>::Variable: Send,
Child: Send,
<L as Language>::Constant: Send,
<L as Language>::Operator: Send,
<L as Language>::Variable: Send,
impl<L, Child> Sync for Expr<L, Child> where
Child: Sync,
<L as Language>::Constant: Sync,
<L as Language>::Operator: Sync,
<L as Language>::Variable: Sync,
Child: Sync,
<L as Language>::Constant: Sync,
<L as Language>::Operator: Sync,
<L as Language>::Variable: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,