Trait xpcom::RefCounted [] [src]

pub unsafe trait RefCounted {
    unsafe fn addref(&self);
unsafe fn release(&self); }

A trait representing a type which can be reference counted invasively. The object is responsible for freeing its backing memory when its reference count reaches 0.

Required Methods

Increment the reference count.

Decrement the reference count, potentially freeing backing memory.

Implementors