Convertor.convertsFrom

Check whether convertor is able to convert from.

Check whether convertor is able to convert from. The intent of method is to implement customized type checking is not limited immediatly to supported default from component.

  1. bool convertsFrom(TypeInfo from)
    interface Convertor
    @safe const nothrow pure
    bool
    convertsFrom
    (
    const TypeInfo from
    )
  2. bool convertsFrom(Object from)

Parameters

from TypeInfo

the type info of component that could potentially be converted by convertor.

Return Value

Type: bool

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

Meta