pub struct ENode<F: ?Sized, C: ?Sized>(/* private fields */);Implementations§
Source§impl<F: ?Sized, C: ?Sized> ENode<F, C>
impl<F: ?Sized, C: ?Sized> ENode<F, C>
pub fn op(&self) -> &F
pub fn args(&self) -> &[ClassId<C>]
pub fn classes_canonical(&self, uf: &UnionFind<C>) -> Result<bool, NoNode>
pub fn is_canonical<G: EGraphRead<FuncSymbol = F, Class = C>>( &self, eg: &G, ) -> Result<bool, NoNode>
pub fn try_map_args<G: Fn(ClassId<C>) -> Result<ClassId<C>, E>, E>( &mut self, f: G, ) -> Result<bool, E>
pub fn map_args<G: Fn(ClassId<C>) -> ClassId<C>>(&mut self, f: G) -> bool
pub fn canonicalize_classes( &mut self, uf: &UnionFind<C>, ) -> Result<bool, NoNode>
pub fn canonicalize<G: EGraphRead<FuncSymbol = F, Class = C>>( &mut self, eg: &G, ) -> Result<bool, NoNode>
pub fn to_canonical<G: EGraphRead<FuncSymbol = F, Class = C>>( &self, eg: &G, ) -> Result<Self, NoNode>
Trait Implementations§
impl<F: ?Sized + Eq, C: ?Sized> Eq for ENode<F, C>
Source§impl<F: ?Sized + Ord, C: ?Sized> Ord for ENode<F, C>
impl<F: ?Sized + Ord, C: ?Sized> Ord for ENode<F, C>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<F: ?Sized + PartialOrd, C: ?Sized> PartialOrd for ENode<F, C>
impl<F: ?Sized + PartialOrd, C: ?Sized> PartialOrd for ENode<F, C>
Auto Trait Implementations§
impl<F, C> Freeze for ENode<F, C>
impl<F, C> RefUnwindSafe for ENode<F, C>
impl<F, C> Send for ENode<F, C>
impl<F, C> Sync for ENode<F, C>
impl<F, C> Unpin for ENode<F, C>
impl<F, C> UnsafeUnpin for ENode<F, C>
impl<F, C> UnwindSafe for ENode<F, C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.