[−][src]Enum egg::ENodeOrVar
The language of Pattern
s.
Variants
An enode from the underlying Language
Var(Var)
A pattern variable
Trait Implementations
impl<L: Clone> Clone for ENodeOrVar<L>
[src]
fn clone(&self) -> ENodeOrVar<L>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<L: Debug> Debug for ENodeOrVar<L>
[src]
impl<L: Eq> Eq for ENodeOrVar<L>
[src]
impl<L: Hash> Hash for ENodeOrVar<L>
[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<L: Language> Language for ENodeOrVar<L>
[src]
fn matches(&self, _other: &Self) -> bool
[src]
fn children(&self) -> &[Id]
[src]
fn children_mut(&mut self) -> &mut [Id]
[src]
fn from_op_str(op_str: &str, children: Vec<Id>) -> Result<Self, String>
[src]
fn display_op(&self) -> &dyn Display
[src]
fn for_each<F: FnMut(Id)>(&self, f: F)
[src]
fn for_each_mut<F: FnMut(&mut Id)>(&mut self, f: F)
[src]
fn len(&self) -> usize
[src]
fn is_leaf(&self) -> bool
[src]
fn update_children<F: FnMut(Id) -> Id>(&mut self, f: F)
[src]
fn map_children<F: FnMut(Id) -> Id>(self, f: F) -> Self
[src]
fn fold<F, T>(&self, init: T, f: F) -> T where
F: FnMut(T, Id) -> T,
T: Clone,
[src]
F: FnMut(T, Id) -> T,
T: Clone,
fn to_recexpr<'a, F>(&self, child_recexpr: F) -> RecExpr<Self> where
Self: 'a,
F: FnMut(Id) -> &'a [Self],
[src]
Self: 'a,
F: FnMut(Id) -> &'a [Self],
impl<L: Ord> Ord for ENodeOrVar<L>
[src]
fn cmp(&self, other: &ENodeOrVar<L>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<L: PartialEq> PartialEq<ENodeOrVar<L>> for ENodeOrVar<L>
[src]
fn eq(&self, other: &ENodeOrVar<L>) -> bool
[src]
fn ne(&self, other: &ENodeOrVar<L>) -> bool
[src]
impl<L: PartialOrd> PartialOrd<ENodeOrVar<L>> for ENodeOrVar<L>
[src]
fn partial_cmp(&self, other: &ENodeOrVar<L>) -> Option<Ordering>
[src]
fn lt(&self, other: &ENodeOrVar<L>) -> bool
[src]
fn le(&self, other: &ENodeOrVar<L>) -> bool
[src]
fn gt(&self, other: &ENodeOrVar<L>) -> bool
[src]
fn ge(&self, other: &ENodeOrVar<L>) -> bool
[src]
impl<L> StructuralEq for ENodeOrVar<L>
[src]
impl<L> StructuralPartialEq for ENodeOrVar<L>
[src]
Auto Trait Implementations
impl<L> RefUnwindSafe for ENodeOrVar<L> where
L: RefUnwindSafe,
L: RefUnwindSafe,
impl<L> Send for ENodeOrVar<L> where
L: Send,
L: Send,
impl<L> Sync for ENodeOrVar<L> where
L: Sync,
L: Sync,
impl<L> Unpin for ENodeOrVar<L> where
L: Unpin,
L: Unpin,
impl<L> UnwindSafe for ENodeOrVar<L> where
L: UnwindSafe,
L: 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>,