[−][src]Struct egg::EClass
An equivalence class of ENode
s
Fields (Non-exhaustive)
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: Id
This eclass's id.
nodes: Vec<ENode<L>>
The equivalent enodes in this equivalence class.
metadata: M
The metadata associated with this eclass.
Methods
impl<L, M> EClass<L, M>
[src]
pub fn is_empty(&self) -> bool
[src]
Returns true
if the eclass
is empty.
pub fn len(&self) -> usize
[src]
Returns the number of enodes in this eclass.
pub fn iter(&self) -> impl ExactSizeIterator<Item = &ENode<L>>
[src]
Iterates over the enodes in the this eclass.
Trait Implementations
impl<L: Clone, M: Clone> Clone for EClass<L, M>
[src]
impl<L: Debug, M: Debug> Debug for EClass<L, M>
[src]
Auto Trait Implementations
impl<L, M> RefUnwindSafe for EClass<L, M> where
L: RefUnwindSafe,
M: RefUnwindSafe,
L: RefUnwindSafe,
M: RefUnwindSafe,
impl<L, M> Send for EClass<L, M> where
L: Send,
M: Send,
L: Send,
M: Send,
impl<L, M> Sync for EClass<L, M> where
L: Sync,
M: Sync,
L: Sync,
M: Sync,
impl<L, M> Unpin for EClass<L, M> where
L: Unpin,
M: Unpin,
L: Unpin,
M: Unpin,
impl<L, M> UnwindSafe for EClass<L, M> where
L: UnwindSafe,
M: UnwindSafe,
L: UnwindSafe,
M: 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<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>,