Enum mozjs::jsapi::JS::WeakMapTraceAction
source · #[repr(i32)]pub enum WeakMapTraceAction {
Skip,
Expand,
TraceValues,
TraceKeysAndValues,
}
Variants§
Skip
Do not trace into weak map keys or values during traversal. Users must handle weak maps manually.
Expand
Do true ephemeron marking with a weak key lookup marking phase. This is the default for GCMarker.
TraceValues
Trace through to all values, irrespective of whether the keys are live or not. Used for non-marking tracers.
TraceKeysAndValues
Trace through to all keys and values, irrespective of whether the keys are live or not. Used for non-marking tracers.
Trait Implementations§
source§impl Clone for WeakMapTraceAction
impl Clone for WeakMapTraceAction
source§fn clone(&self) -> WeakMapTraceAction
fn clone(&self) -> WeakMapTraceAction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WeakMapTraceAction
impl Debug for WeakMapTraceAction
source§impl Hash for WeakMapTraceAction
impl Hash for WeakMapTraceAction
source§impl PartialEq<WeakMapTraceAction> for WeakMapTraceAction
impl PartialEq<WeakMapTraceAction> for WeakMapTraceAction
source§fn eq(&self, other: &WeakMapTraceAction) -> bool
fn eq(&self, other: &WeakMapTraceAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WeakMapTraceAction
impl Eq for WeakMapTraceAction
impl StructuralEq for WeakMapTraceAction
impl StructuralPartialEq for WeakMapTraceAction
Auto Trait Implementations§
impl RefUnwindSafe for WeakMapTraceAction
impl Send for WeakMapTraceAction
impl Sync for WeakMapTraceAction
impl Unpin for WeakMapTraceAction
impl UnwindSafe for WeakMapTraceAction
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more