Type Alias mozjs::jsapi::mozilla::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 mValue: u64,
    pub _phantom_0: PhantomData<UnsafeCell<u64>>,
}

Fields§

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

Trait Implementations§

source§

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

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 for Opaque<T>where T: Debug,

source§

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

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

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

source§

fn eq(&self, other: &Opaque<T>) -> 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.
source§

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

source§

impl<T> StructuralPartialEq for Opaque<T>