TOC Toolkit API - v0.1.0
Preparing search index...
toc-toolkit/egraph
Rewrite
Interface Rewrite<Op, Data>
A named equality rule; its caller is responsible for semantic soundness.
interface
Rewrite
<
Op
extends
NonNullable
<
unknown
>
,
Data
>
{
name
:
string
;
lhs
:
RewriteLhs
<
Op
,
Data
>
;
condition
?:
(
graph
:
EGraph
<
Op
,
Data
>
,
match
:
Match
)
=>
boolean
;
rhs
:
RewriteRhs
<
Op
,
Data
>
;
}
Type Parameters
Op
extends
NonNullable
<
unknown
>
Data
Index
Properties
name
lhs
condition?
rhs
Properties
Readonly
name
name
:
string
Readonly
lhs
lhs
:
RewriteLhs
<
Op
,
Data
>
Optional
Readonly
condition
condition
?:
(
graph
:
EGraph
<
Op
,
Data
>
,
match
:
Match
)
=>
boolean
Readonly
rhs
rhs
:
RewriteRhs
<
Op
,
Data
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
name
lhs
condition
rhs
TOC Toolkit API - v0.1.0
Loading...
A named equality rule; its caller is responsible for semantic soundness.