Weak

Helper struct that keeps a weak reference to a Resource.

Constructors

this
this(T obj)

Build a Weak instance.

Members

Functions

lock
Rc!T lock()

Return a Rc that contain the underlying resource if it has not been disposed.

reset
void reset()

Reset the internal reference.

Properties

disposed
bool disposed [@property getter]

Check whether the resource has been disposed.

Meta