Type Alias mozjs::jsapi::MozRefCountType

source ·
pub type MozRefCountType = usize;
Expand description

MozRefCountType is Mozilla’s reference count type.

We use the same type to represent the refcount of RefCounted objects as well, in order to be able to use the leak detection facilities that are implemented by XPCOM.

Note that this type is not in the mozilla namespace so that it is usable for both C and C++ code.

Trait Implementations§

source§

impl Traceable for usize

source§

unsafe fn trace(&self, _: *mut JSTracer)

Trace self.