Loader.opApply

Foreach over YAML documents.

Parses documents lazily, when they are needed.

Foreach over a Loader can only be used once; this is enforced by contract.

struct Loader
int
opApply
@trusted
(
int delegate(
ref Node
)
dg
)
in { assert (!done_, "Loader: Trying to load YAML twice"); }

Throws

YAMLException on a parsing error.

Meta