RefCountedTrusted.refCountedPayload

These are the only ways to access the refcounted payload (but the store MUST be initialized)

More importantly, safe code must NEVER escape references to the payload.

  1. T refCountedPayload [@property getter]
    struct RefCountedTrusted(T, RefCountedAutoInitialize autoInit = RefCountedAutoInitialize.yes)
    @property ref @system
    static if(autoInit == RefCountedAutoInitialize.yes)
    T
    refCountedPayload
    ()
    if (
    !is(T == class) &&
    !(is(T == interface))
    )
  2. inout(T) refCountedPayload [@property getter]