ChainedConvertor.destroys

Check whether this convertor is able to destroy to component.

The destroys family of methods are designed purposely for identification whether convertor was able to convert from type to destination to, and is eligible for destruction of converted components.

  1. bool destroys(TypeInfo from, TypeInfo to)
  2. bool destroys(Object from, TypeInfo to)
  3. bool destroys(TypeInfo from, Object to)
    class ChainedConvertor
    @safe const nothrow
    bool
    destroys
    (
    const TypeInfo from
    ,
    in Object to
    )
  4. bool destroys(Object from, Object to)

Parameters

from TypeInfo

original component which was converted.

to Object

converted component that should be destroyed by convertor.

Return Value

Type: bool

true if convertor is eligible for destroying to, or false otherwise.

Meta