CastableWrapperImpl

Wrapper over some component of type T.

Wraps up a value of type T, and aliases itself to it. This object is used wrap any component that is not of reference type (class or interface), in order to be saveable into an object storage. Also thanks to alias value this semantics, in D is possible to do automatic unboxing of values, just like Java does with simple values :P.

  1. class WrapperImpl(T)
  2. class CastableWrapperImpl(T, Castables...)
    @safe
    class CastableWrapperImpl : Wrapper!T, staticMap!(toCastable, Castables)(
    T
    Castables...
    ) {}

Members

Mixins

__anonymous
mixin WrapperMixin!T
Undocumented in source.
__anonymous
mixin CastableMixin!(Castables)
Undocumented in source.

Meta