#[repr(i32)]pub enum ESClass {
Show 19 variants
Object = 0,
Array = 1,
Number = 2,
String = 3,
Boolean = 4,
RegExp = 5,
ArrayBuffer = 6,
SharedArrayBuffer = 7,
Date = 8,
Set = 9,
Map = 10,
Promise = 11,
MapIterator = 12,
SetIterator = 13,
Arguments = 14,
Error = 15,
BigInt = 16,
Function = 17,
Other = 18,
}
Expand description
Enumeration describing possible values of the [[Class]] internal property value of objects.
Variants§
Object = 0
Array = 1
Number = 2
String = 3
Boolean = 4
RegExp = 5
ArrayBuffer = 6
Date = 8
Set = 9
Map = 10
Promise = 11
MapIterator = 12
SetIterator = 13
Arguments = 14
Error = 15
BigInt = 16
Function = 17
Other = 18
None of the above.
Trait Implementations§
source§impl PartialEq for ESClass
impl PartialEq for ESClass
impl Copy for ESClass
impl Eq for ESClass
impl StructuralPartialEq for ESClass
Auto Trait Implementations§
impl Freeze for ESClass
impl RefUnwindSafe for ESClass
impl Send for ESClass
impl Sync for ESClass
impl Unpin for ESClass
impl UnwindSafe for ESClass
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
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>
Creates a filterable data provider with the given name for debugging. Read more
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>
Converts
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>
Converts
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