Enum mozjs::jsapi::JS::WeakRefSpecifier
source · #[repr(i32)]pub enum WeakRefSpecifier {
Disabled,
EnabledWithCleanupSome,
EnabledWithoutCleanupSome,
}
Expand description
Specification for whether weak refs should be enabled and if so whether the FinalizationRegistry.cleanupSome method should be present.
Variants§
Trait Implementations§
source§impl Clone for WeakRefSpecifier
impl Clone for WeakRefSpecifier
source§fn clone(&self) -> WeakRefSpecifier
fn clone(&self) -> WeakRefSpecifier
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 WeakRefSpecifier
impl Debug for WeakRefSpecifier
source§impl Hash for WeakRefSpecifier
impl Hash for WeakRefSpecifier
source§impl PartialEq<WeakRefSpecifier> for WeakRefSpecifier
impl PartialEq<WeakRefSpecifier> for WeakRefSpecifier
source§fn eq(&self, other: &WeakRefSpecifier) -> bool
fn eq(&self, other: &WeakRefSpecifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WeakRefSpecifier
impl Eq for WeakRefSpecifier
impl StructuralEq for WeakRefSpecifier
impl StructuralPartialEq for WeakRefSpecifier
Auto Trait Implementations§
impl RefUnwindSafe for WeakRefSpecifier
impl Send for WeakRefSpecifier
impl Sync for WeakRefSpecifier
impl Unpin for WeakRefSpecifier
impl UnwindSafe for WeakRefSpecifier
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