[−][src]Struct egg::ENode
Fields
op: O
children: SmallVec<[Child; 2]>
Methods
impl<L: Language, Child> ENode<L, Child>
[src]
pub fn leaf(op: L) -> Self
[src]
pub fn new(op: L, children: impl IntoIterator<Item = Child>) -> Self
[src]
pub fn try_new<E, I>(op: L, children: I) -> Result<Self, E> where
I: IntoIterator<Item = Result<Child, E>>,
[src]
I: IntoIterator<Item = Result<Child, E>>,
pub fn map_children_result<Child2, F, Error>(
&self,
f: F
) -> Result<ENode<L, Child2>, Error> where
Child: Clone,
F: FnMut(Child) -> Result<Child2, Error>,
[src]
&self,
f: F
) -> Result<ENode<L, Child2>, Error> where
Child: Clone,
F: FnMut(Child) -> Result<Child2, Error>,
pub fn map_children<Child2, F>(&self, f: F) -> ENode<L, Child2> where
Child: Clone,
F: FnMut(Child) -> Child2,
[src]
Child: Clone,
F: FnMut(Child) -> Child2,
impl<L: Language> ENode<L>
[src]
pub fn update_ids<V>(&self, unionfind: &UnionFind<Id, V>) -> Self
[src]
Trait Implementations
impl<L> AsRef<ENode<L, RecExpr<L>>> for RecExpr<L>
[src]
impl<L> Borrow<ENode<L, RecExpr<L>>> for RecExpr<L>
[src]
impl<O: Clone, Child: Clone> Clone for ENode<O, Child>
[src]
impl<O: Debug, Child: Debug> Debug for ENode<O, Child>
[src]
impl<O: Eq, Child: Eq> Eq for ENode<O, Child>
[src]
impl<L> From<ENode<L, RecExpr<L>>> for RecExpr<L>
[src]
impl<O: Hash, Child: Hash> Hash for ENode<O, Child>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<O: PartialEq, Child: PartialEq> PartialEq<ENode<O, Child>> for ENode<O, Child>
[src]
fn eq(&self, other: &ENode<O, Child>) -> bool
[src]
fn ne(&self, other: &ENode<O, Child>) -> bool
[src]
impl<O, Child> StructuralEq for ENode<O, Child>
[src]
impl<O, Child> StructuralPartialEq for ENode<O, Child>
[src]
Auto Trait Implementations
impl<O, Child> RefUnwindSafe for ENode<O, Child> where
Child: RefUnwindSafe,
O: RefUnwindSafe,
Child: RefUnwindSafe,
O: RefUnwindSafe,
impl<O, Child> Send for ENode<O, Child> where
Child: Send,
O: Send,
Child: Send,
O: Send,
impl<O, Child> Sync for ENode<O, Child> where
Child: Sync,
O: Sync,
Child: Sync,
O: Sync,
impl<O, Child> Unpin for ENode<O, Child> where
Child: Unpin,
O: Unpin,
Child: Unpin,
O: Unpin,
impl<O, Child> UnwindSafe for ENode<O, Child> where
Child: RefUnwindSafe + UnwindSafe,
O: UnwindSafe,
Child: RefUnwindSafe + UnwindSafe,
O: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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>,