Report a bug
If you spot a problem with this page, click here to create a GitHub issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

mir.ion.type_code

Ion Type enumeration and encoding.
enum IonTypeCode: int;
null_

Spec 0: null

D type .

bool_

Spec 1: bool

D type bool

uInt

nInt

D type and

float_

Spec 4: float

D type

decimal

D type

timestamp

D type

symbol

Spec 7: symbol

D type

string

Spec 8: string

D type const(char)[]

clob

Spec 9: clob

D type Clob 

blob

Spec 10: blob

D type Blob 

list

Spec 11: list

D type

sexp

Spec 12: sexp

D type

struct_

D type

annotations

D type

pure nothrow @nogc @safe string nullStringOf()(IonTypeCode code);
Returns:
text Ion representation of null type code.
pure nothrow @nogc @safe string nullStringJsonAlternative()(IonTypeCode code);
Returns:
JSON representation of null value that can be deserialized to an algebraic types. Empty strings, structs, and lists are used instead of null value for the corresponding codes.