identify

Identify the type of object.

Identify the type of object. The object will be downcasted to TypeAware first, in order to test if object is holding information about some type. If so, the type from TypeAware object will be returned, otherwise classinfo of object itself.

  1. const(TypeInfo) identify(T object)
  2. const(TypeInfo) identify(T component)
  3. T identify(T typeinfo)
  4. T identify(T typeinfo)
  5. T identify(T typeinfo)
    nothrow @nogc @safe
    T
    identify
    (
    T : immutable TypeInfo
    )
    (
    auto ref T typeinfo
    )

Return Value

Type: T

TypeInfo of stored type of object implements TypeAware, or classinfo of object itself.

Meta