[−][src]Enum egg::Pattern
Variants
Wildcard(QuestionMarkName, WildcardKind)
Methods
impl<L: Language> Pattern<L>
[src]
pub fn from_expr(e: &RecExpr<L>) -> Self
[src]
pub fn to_expr(&self) -> Result<RecExpr<L>, String>
[src]
pub fn is_multi_wildcard(&self) -> bool
[src]
pub fn subst_and_find<M>(
&self,
egraph: &mut EGraph<L, M>,
mapping: &WildMap
) -> Id where
M: Metadata<L>,
[src]
&self,
egraph: &mut EGraph<L, M>,
mapping: &WildMap
) -> Id where
M: Metadata<L>,
impl<L: Language + Display> Pattern<L>
[src]
Trait Implementations
impl<L: Language, M: Metadata<L>> Applier<L, M> for Pattern<L>
[src]
fn apply_one(
&self,
egraph: &mut EGraph<L, M>,
_: Id,
mapping: &WildMap
) -> Vec<Id>
[src]
&self,
egraph: &mut EGraph<L, M>,
_: Id,
mapping: &WildMap
) -> Vec<Id>
fn apply_matches(
&self,
egraph: &mut EGraph<L, M>,
matches: &[SearchMatches]
) -> Vec<Id>
[src]
&self,
egraph: &mut EGraph<L, M>,
matches: &[SearchMatches]
) -> Vec<Id>
impl<L: Clone> Clone for Pattern<L>
[src]
impl<L: Debug> Debug for Pattern<L>
[src]
impl<L: Language + FromStr> FromStr for Pattern<L>
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, ParseError>
[src]
impl<L: PartialEq> PartialEq<Pattern<L>> for Pattern<L>
[src]
impl<L, M> Searcher<L, M> for Pattern<L> where
L: Language,
M: Metadata<L>,
[src]
L: Language,
M: Metadata<L>,
fn search(&self, egraph: &EGraph<L, M>) -> Vec<SearchMatches>
[src]
fn search_eclass(
&self,
egraph: &EGraph<L, M>,
eclass: Id
) -> Option<SearchMatches>
[src]
&self,
egraph: &EGraph<L, M>,
eclass: Id
) -> Option<SearchMatches>
impl<L> StructuralPartialEq for Pattern<L>
[src]
Auto Trait Implementations
impl<L> !RefUnwindSafe for Pattern<L>
impl<L> !Send for Pattern<L>
impl<L> !Sync for Pattern<L>
impl<L> Unpin for Pattern<L>
impl<L> !UnwindSafe for Pattern<L>
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>,