#[repr(u32)]pub enum JSWhyMagic {
Show 16 variants
JS_ELEMENTS_HOLE = 0,
JS_NO_ITER_VALUE = 1,
JS_GENERATOR_CLOSING = 2,
JS_ARG_POISON = 3,
JS_SERIALIZE_NO_NODE = 4,
JS_IS_CONSTRUCTING = 5,
JS_HASH_KEY_EMPTY = 6,
JS_ION_ERROR = 7,
JS_ION_BAILOUT = 8,
JS_OPTIMIZED_OUT = 9,
JS_UNINITIALIZED_LEXICAL = 10,
JS_MISSING_ARGUMENTS = 11,
JS_INTERRUPT_REGEXP = 12,
JS_GENERIC_MAGIC = 13,
JS_ERROR_WITHOUT_CAUSE = 14,
JS_WHY_MAGIC_COUNT = 15,
}
Variants§
JS_ELEMENTS_HOLE = 0
a hole in a native object’s elements
JS_NO_ITER_VALUE = 1
there is not a pending iterator value
JS_GENERATOR_CLOSING = 2
exception value thrown when closing a generator
JS_ARG_POISON = 3
used in debug builds to catch tracing errors
JS_SERIALIZE_NO_NODE = 4
an empty subnode in the AST serializer
JS_IS_CONSTRUCTING = 5
magic value passed to natives to indicate construction
JS_HASH_KEY_EMPTY = 6
see class js::HashableValue
JS_ION_ERROR = 7
error while running Ion code
JS_ION_BAILOUT = 8
missing recover instruction result
JS_OPTIMIZED_OUT = 9
optimized out slot
JS_UNINITIALIZED_LEXICAL = 10
uninitialized lexical bindings that produce ReferenceError on touch.
JS_MISSING_ARGUMENTS = 11
arguments object can’t be created because environment is dead.
JS_INTERRUPT_REGEXP = 12
exception value thrown when interrupting irregexp
JS_GENERIC_MAGIC = 13
for local use
JS_ERROR_WITHOUT_CAUSE = 14
When an error object is created without the error cause argument, we set the error’s cause slot to this magic value.
JS_WHY_MAGIC_COUNT = 15
When an error object is created without the error cause argument, we set the error’s cause slot to this magic value.
Trait Implementations§
source§impl Clone for JSWhyMagic
impl Clone for JSWhyMagic
source§fn clone(&self) -> JSWhyMagic
fn clone(&self) -> JSWhyMagic
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JSWhyMagic
impl Debug for JSWhyMagic
source§impl Hash for JSWhyMagic
impl Hash for JSWhyMagic
source§impl PartialEq for JSWhyMagic
impl PartialEq for JSWhyMagic
source§fn eq(&self, other: &JSWhyMagic) -> bool
fn eq(&self, other: &JSWhyMagic) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for JSWhyMagic
impl Eq for JSWhyMagic
impl StructuralPartialEq for JSWhyMagic
Auto Trait Implementations§
impl Freeze for JSWhyMagic
impl RefUnwindSafe for JSWhyMagic
impl Send for JSWhyMagic
impl Sync for JSWhyMagic
impl Unpin for JSWhyMagic
impl UnwindSafe for JSWhyMagic
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more