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 (orvar.initfor NULL) without allocating.Parameters
handlersOne or more callable handlers for different types. Returns
The result of calling the matched handler, or