TOC Toolkit API - v0.1.0
Preparing search index...
toc-toolkit/egraph
RewriteRule
Interface RewriteRule<State, Context, Detail, Proof>
Lazily proposes states without mutating its input or earlier proposals.
interface
RewriteRule
<
State
,
Context
,
Detail
,
Proof
>
{
id
:
string
;
proof
:
Proof
;
candidates
(
state
:
State
,
context
:
Context
,
)
:
Iterable
<
RewriteProposal
<
State
,
Detail
>
>
;
}
Type Parameters
State
Context
Detail
Proof
Index
Properties
id
proof
Methods
candidates
Properties
Readonly
id
id
:
string
Readonly
proof
proof
:
Proof
Methods
candidates
candidates
(
state
:
State
,
context
:
Context
,
)
:
Iterable
<
RewriteProposal
<
State
,
Detail
>
>
Parameters
state
:
State
context
:
Context
Returns
Iterable
<
RewriteProposal
<
State
,
Detail
>
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
id
proof
Methods
candidates
TOC Toolkit API - v0.1.0
Loading...
Lazily proposes states without mutating its input or earlier proposals.