Convertor.convertsFrom

Check whether convertor is able to convert from.

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

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

Parameters

from Object

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