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 From<ProtoOrIfaceIndex> for usize

source§

fn from(index: ProtoOrIfaceIndex) -> usize

Converts to this type from the input type.
1.0.0 · source§

impl Ord for usize

source§

fn cmp(&self, other: &usize) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<Value> for usize

source§

fn eq(&self, other: &Value) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
1.0.0 · source§

impl PartialEq<usize> for usize

source§

fn eq(&self, other: &usize) -> bool

This method tests for self and other values to be equal, and is used by ==.
source§

fn ne(&self, other: &usize) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
1.0.0 · source§

impl PartialOrd<usize> for usize

source§

fn partial_cmp(&self, other: &usize) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
source§

fn lt(&self, other: &usize) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
source§

fn le(&self, other: &usize) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
source§

fn ge(&self, other: &usize) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

fn gt(&self, other: &usize) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
source§

impl Traceable for usize

source§

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

Trace self.
1.0.0 · source§

impl Eq for usize