R.init if no handler matches.var.visitNogc
auto visitNogc(handlers...)() const @safe @nogcvisitNogc is a no-GC variant of visit.
It performs the same type-based dispatch as visit, but is annotated @nogc.
Notes:
- Any chosen handler must also be
@nogc. - Unlike
visit, the fallback handler acceptingvarreceives the original
value (or var.init for NULL) without allocating.
Parameters
handlers | One or more callable handlers for different types. |
Returns
The result of calling the matched handler, or