pub struct RewriteT<L: Language, N: Analysis<L> = (), T: Any = ()> {
pub searcher: Box<dyn Fn(&EGraph<L, N>) -> T>,
pub applier: Box<dyn Fn(T, &mut EGraph<L, N>)>,
}Expand description
Fields§
§searcher: Box<dyn Fn(&EGraph<L, N>) -> T>§applier: Box<dyn Fn(T, &mut EGraph<L, N>)>Implementations§
Auto Trait Implementations§
impl<L, N, T> Freeze for RewriteT<L, N, T>
impl<L, N = (), T = ()> !RefUnwindSafe for RewriteT<L, N, T>
impl<L, N = (), T = ()> !Send for RewriteT<L, N, T>
impl<L, N = (), T = ()> !Sync for RewriteT<L, N, T>
impl<L, N, T> Unpin for RewriteT<L, N, T>
impl<L, N, T> UnsafeUnpin for RewriteT<L, N, T>
impl<L, N = (), T = ()> !UnwindSafe for RewriteT<L, N, T>
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