CallbackConvertor.convertsFrom

Check whether convertor is able to convert from.

  1. bool convertsFrom(TypeInfo from)
    class CallbackConvertor(alias convertor, alias destructor)
    const nothrow
    bool
    convertsFrom
    (
    TypeInfo from
    )
    if (
    isConvertor!convertor.Yes &&
    isDestructor!destructor.Yes
    )
  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