Drift Engine Documentation
Toggle table of contents
1.0.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Drift Engine Documentation
core
/
dev.gmitch215.drift.know
/
Detect
/
match
match
fun
match
(
rule
:
Rule
,
green
:
Env
,
red
:
Env
)
:
RuleOutcome
(
source
)
Evaluates
rule
with
green
as side
a
(passing) and
red
as side
b
(failing).
fun
match
(
rule
:
Rule
,
green
:
Capsule
,
red
:
Capsule
,
run
:
Map
<
String
,
String
>
=
emptyMap()
)
:
RuleOutcome
(
source
)
fun
match
(
rule
:
Rule
,
green
:
Capsule
,
red
:
Capsule
,
greenRun
:
Run
?
,
redRun
:
Run
?
)
:
RuleOutcome
(
source
)