mozjs_sys::jsapi::mozilla

Type Alias Generation

Source
pub type Generation = Opaque<u64>;
Expand description

Opaque is a replacement for integral T in cases where only comparisons must be supported, and it’s desirable to prevent accidental dependency on exact values.

Aliased Type§

struct Generation {
    pub _phantom_0: PhantomData<UnsafeCell<u64>>,
    pub mValue: u64,
}

Fields§

§_phantom_0: PhantomData<UnsafeCell<u64>>§mValue: u64

Trait Implementations

Source§

impl<T: Clone> Clone for Opaque<T>

Source§

fn clone(&self) -> Opaque<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for Opaque<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: PartialEq> PartialEq for Opaque<T>

Source§

fn eq(&self, other: &Opaque<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T: Copy> Copy for Opaque<T>

Source§

impl<T> StructuralPartialEq for Opaque<T>