dyaml.dumper

YAML dumper.

Code based on PyYAML.

struct Dumper

Types 1

structDumper
Fields
int indent_
TagDirective[] tags_
Resolver resolver
bool canonical
uint textWidth
LineBreak lineBreak
string YAMLVersion
bool explicitStart
bool explicitEnd
string name
ScalarStyle defaultScalarStyle
CollectionStyle defaultCollectionStyle
Methods
bool opEquals(ref Dumper) @disable
int opCmp(ref Dumper) @disable
void indent(uint indent) @property pure @safe nothrowSet indentation width. 2 by default. Must not be zero.
void tagDirectives(string[string] tags) @property pure @safeSpecify tag directives.
void dump(CharacterType = char, Range)(Range range, Node[] documents ...) if (isOutputRange!(Range, CharacterType) && isOutputRange!(Range, char) || isOutputRange!(Range, wchar) || isOutputRange!(Range, dchar))Dump one or more YAML documents to the file/stream.

Functions 1

fnauto dumper()Dumps YAML documents to files or streams.