LimitedVariant

A limited variant to hold just a few types. It is made for the use of packing a small amount of extra data into error messages.

Constructors

this
this(string s)
this(const(ubyte)[] b)
this(long l, int base)
this(double d)

Members

Enums

Contains
enum Contains

Functions

contains
Contains contains()
containsBytes
bool containsBytes()
containsDouble
bool containsDouble()
containsInt
bool containsInt()
containsString
bool containsString()
getBytes
const(ubyte)[] getBytes()
getDouble
double getDouble()
getInt
long getInt()

getString gets a reference to the string stored internally, see toString to get a string representation or whatever is inside.

getString
const(char)[] getString()

getString gets a reference to the string stored internally, see toString to get a string representation or whatever is inside.

toString
string toString()

Meta