Convertor

Interface for components that are able to convert from one erased type to another erased type.

Members

Functions

convert
Object convert(Object from, TypeInfo to, RCIAllocator allocator)

Convert from component to component.

converts
bool converts(TypeInfo from, TypeInfo to)
bool converts(TypeInfo from, Object to)
bool converts(Object from, TypeInfo to)
bool converts(Object from, Object to)

Check whether convertor is able to convert from type to type.

convertsFrom
bool convertsFrom(TypeInfo from)

Check whether convertor is able to convert from.

convertsFrom
bool convertsFrom(Object from)

Check whether convertor is able to convert from.

convertsTo
bool convertsTo(TypeInfo to)

Check whether convertor is able to convert to.

convertsTo
bool convertsTo(Object to)

Check whether convertor is able to convert to.

destroys
bool destroys(TypeInfo from, TypeInfo to)
bool destroys(Object from, TypeInfo to)
bool destroys(TypeInfo from, Object to)
bool destroys(Object from, Object to)

Check whether this convertor is able to destroy to component.

destruct
void destruct(TypeInfo from, Object converted, RCIAllocator allocator)

Destroy component created using this convertor.

Properties

from
const(TypeInfo)[] from [@property getter]

Get the type info of component that convertor can convert from.

to
const(TypeInfo)[] to [@property getter]

Get the type info of component that convertor is able to convert to.

Inherited Members

From PureSafeNothrowToString

toString
string toString()
Undocumented in source.

Meta