Exception, to be thrown when the specified serialised text could not be parsed, for whatever reason.
UDA conveying that this member may contain characters that would otherwise indicate a comment, but isn't.
UDA conveying that this member's value must be quoted when serialised.
UDA conveying that a field cannot (or should not) be serialised.
Takes an input range containing serialised entry-value text and applies the contents therein to one or more passed struct/class objects.
Takes an unformatted string of serialised entry-value text and justifies it into two neat columns.
Convenience function to call serialise on several objects.
Serialises the fields of an object into an .ini file-like format.
Serialises a non-string array into a single row. To be used when serialising an aggregate with serialise.
Splits a line into an entry and a value component.
UDA conveying that the annotated array should have this token as separator when formatted to a string.
Summary of UDAs that an array to be serialised is annotated with.
struct FooSettings { string fooasdf; string bar; string bazzzzzzz; @Quoted flerrp; double pi; } FooSettings f; f.fooasdf = "foo"; f.bar = "bar"; f.bazzzzzzz = "baz"; f.flerrp = "hirr steff "; f.pi = 3.14159; enum fooSerialised = `[Foo] fooasdf foo bar bar bazzzzzzz baz flerrp "hirr steff " pi 3.14159`; enum fooJustified = `[Foo] fooasdf foo bar bar bazzzzzzz baz flerrp "hirr steff " pi 3.14159`; Appender!(char[]) sink; sink.serialise(f); assert(sink.data.justifiedEntryValueText == fooJustified); FooSettings mirror; deserialise(fooSerialised, mirror); assert(mirror == f); FooSettings mirror2; deserialise(fooJustified, mirror2); assert(mirror2 == mirror);
Various functions related to serialising and deserialising structs into/from .ini-like files.