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)
  2. Convertor convertorOf(T component)
    nothrow @nogc @safe
    convertorOf
    (
    T
    )
    (
    auto ref T component
    )
    if (
    !(
    is(T : Object) ||
    is(T : const Object)
    ||
    is(T : immutable Object)
    )
    )
  3. Convertor convertorOf(T convertor)
  4. const(Convertor) convertorOf(T convertor)
  5. immutable(Convertor) convertorOf(T convertor)

Return Value

Type: Convertor

Convertor used to convert to contained component.

Meta