The OpenD Programming Language

serdeIgnoreIfAggregate.SerdeOrderedDummy

A dummy structure usefull serdeOrderedIn support.

Members

Functions

serdeFinalizeTarget
void serdeFinalizeTarget(T value, SerdeFlags!T flags)

Initialize target members

serdeFinalizeTargetMember
void serdeFinalizeTargetMember(T value)

Initialize target member

serdeFinalizeWithFlags
void serdeFinalizeWithFlags(SerdeFlags!(typeof(this)) flags)

Initialize target members

Examples

import std.traits;

static struct S
{
    private double _d;

    @serdeProxy!int
    void d(double v) @property { _d = v; }

    string s;
}

static assert(is(typeof(SerdeOrderedDummy!S.init.d) == double), SerdeOrderedDummy!S.init.d);
static assert(is(typeof(SerdeOrderedDummy!S.init.s) == string));
static assert(hasUDA!(S.d, serdeProxy));
static assert(hasUDA!(SerdeOrderedDummy!S.d, serdeProxy));

Meta