MatchImpl.fail

Match failed.

It's recommended not to use runtime formatted strings for match errors, to avoid constant GC allocations during runtime. Formatting should be limited to critical errors, see matchCritical.

struct MatchImpl(Input, alias supply, Ts...)
static nothrow pure @safe @nogc
fail
(
Input source
,
string error
,)

Parameters

source Input

Source that failed to match.

error string

Error message, a reason why the match failed.

data Data

Optionally, context data for the failure, i.e. result data that matched successfully right before.

Meta