Type Alias mozjs::jsapi::gc::MarkBitmapWord

source ·
pub type MarkBitmapWord = u64;
Expand description

Atomic implementation for integral types.

In addition to atomic store and load operations, compound assignment and increment/decrement operators are implemented which perform the corresponding read-modify-write operation atomically. Finally, an atomic swap method is provided.

Trait Implementations§

source§

impl As<f64> for u64

source§

fn cast(self) -> f64

source§

impl As<u64> for u64

source§

fn cast(self) -> u64

source§

impl FromJSValConvertible for u64

§

type Config = ConversionBehavior

Optional configurable behaviour switch; use () for no configuration.
source§

unsafe fn from_jsval( cx: *mut JSContext, val: HandleValue<'_>, option: ConversionBehavior ) -> Result<ConversionResult<u64>, ()>

Convert val to type Self. Optional configuration of type T can be passed as the option argument. If it returns Err(()), a JSAPI exception is pending. If it returns Ok(Failure(reason)), there is no pending JSAPI exception.
source§

impl ToJSValConvertible for u64

source§

unsafe fn to_jsval(&self, _cx: *mut JSContext, rval: MutableHandleValue<'_>)

Convert self to a JSVal. JSAPI failure causes a panic.
source§

impl Traceable for u64

source§

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

Trace self.