ConvertsToMixin.convertsTo

Check whether convertor is able to convert to.

Check whether convertor is able to convert to. The method will try to extract type info out of to object and use for subsequent type checking. The intent of the method is to implement customized type checking that is not limited immediatly to supported default to component.

  1. bool convertsTo(TypeInfo to)
  2. bool convertsTo(Object to)
    mixintemplate ConvertsToMixin()
    @safe const nothrow pure
    bool
    convertsTo
    (
    in Object to
    )

Parameters

to Object

type info of component that convertor could potentially convert to.

Return Value

Type: bool

true if it is able to convert to, false otherwise.

Meta