The OpenD Programming Language

Algebraic.trustedGet

trustedGet overload that accept .Algebraic.Kind.

  1. auto ref trustedGet()
  2. template trustedGet(RetTypes...)
  3. alias trustedGet(Kind kind) = trustedGet!(AllowedTypes[kind])
  4. alias trustedGet(immutable(char)[] kind) = trustedGet!(__traits(getMember, Kind, kind))
    import mir.algebraic;
    struct Algebraic(T__...)
    static if(typeFieldNames__.length)
    alias trustedGet(immutable(char)[] kind) = trustedGet!(__traits(getMember, Kind, kind))
  5. auto ref trustedGet()

Meta