DynamicT

Undocumented in source.

Constructors

this
this(T t)
Undocumented in source.

Members

Functions

canConvertTo
bool canConvertTo(TypeInfo to)
convertTo
const(void)[] convertTo(TypeInfo to)
data
T data()
opEquals
bool opEquals(Object object)

two dynamics are equal when they store same type and the values pass opEquals

toHash
size_t toHash()
toString
string toString()
type
TypeInfo type()
typename
string typename()

Inherited Members

From Dynamic

type
TypeInfo type()

returns stored typeinfo

typename
string typename()

returns stored typename (work around dmd bug https://issues.dlang.org/show_bug.cgi?id=3831)

convertTo
const(void)[] convertTo(TypeInfo to)

converts stored value to given "to" type and returns 1el array of target type vals. conversion must be defined.

canConvertTo
bool canConvertTo(TypeInfo to)

checks if stored value can be converted to given "to" type.

Meta