ConvertsToMixin.convertsTo

Check whether convertor is able to convert to.

Check whether convertor is able to convert to. 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)
    mixintemplate ConvertsToMixin()
    @safe const nothrow pure
    bool
    convertsTo
    (
    const TypeInfo to
    )
  2. bool convertsTo(Object to)

Parameters

to TypeInfo

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