convertorOf

Identify the convertor used to convert component.

Identify the convertor used to convert component. The object will be downcasted to ConvertorAware interface and if it succeeded convertor used to convert component will be returned. For non-object components null will be returned as no convertor can be extracted from them.

  1. const(Convertor) convertorOf(T object)
    @trusted nothrow @nogc pure
    const(Convertor)
    convertorOf
    (
    T
    )
    ()
    if (
    is(T : Object) ||
    is(T : const Object)
    ||
    is(T : immutable Object)
    )
  2. Convertor convertorOf(T component)
  3. Convertor convertorOf(T convertor)
  4. const(Convertor) convertorOf(T convertor)
  5. immutable(Convertor) convertorOf(T convertor)

Parameters

object T

converted component for which used convertor would need to be identified.

Return Value

Type: const(Convertor)

Convertor used to convert to contained component.

Meta