DesktopReadOptions.this

Setting parameters in any order, leaving not mentioned ones in default state.

struct DesktopReadOptions
@nogc @safe
this
nothrow pure
(
Args...
)
(
Args args
)

Examples

1 DesktopReadOptions options;
2 
3 options = DesktopReadOptions(
4     ExtensionGroupPolicy.skip,
5     UnknownGroupPolicy.preserve,
6     ActionGroupPolicy.skip,
7     DuplicateKeyPolicy.skip,
8     DuplicateGroupPolicy.preserve,
9     No.preserveComments
10 );
11 assert(options.unknownGroupPolicy == UnknownGroupPolicy.preserve);
12 assert(options.actionGroupPolicy == ActionGroupPolicy.skip);
13 assert(options.extensionGroupPolicy == ExtensionGroupPolicy.skip);
14 assert(options.duplicateGroupPolicy == DuplicateGroupPolicy.preserve);
15 assert(options.duplicateKeyPolicy == DuplicateKeyPolicy.skip);
16 assert(!options.preserveComments);

Meta