Skip to content

match

function match<T, E, R>(r, arms): R;

Defined in: packages/engine/src/errors/Result.ts:76

Exhaustive pattern-match, the match/switch a Rust enum gets for free.

Type Parameter
T
E
R
ParameterType
rResult<T, E>
arms{ err: (error) => R; ok: (value) => R; }
arms.err(error) => R
arms.ok(value) => R

R