#[repr(i32)]pub enum JsTag {
Show 14 variants
BigInt = -9,
Symbol = -8,
String = -7,
Module = -3,
FunctionBytecode = -2,
Object = -1,
Int = 0,
Bool = 1,
Null = 2,
Undefined = 3,
Uninitialized = 4,
CatchOffset = 5,
Exception = 6,
Float64 = 7,
}
Variants§
BigInt = -9
Symbol = -8
String = -7
Module = -3
FunctionBytecode = -2
Object = -1
Int = 0
Bool = 1
Null = 2
Undefined = 3
Uninitialized = 4
CatchOffset = 5
Exception = 6
Float64 = 7
Implementations§
Source§impl JsTag
impl JsTag
Sourcepub fn is_undefined(&self) -> bool
pub fn is_undefined(&self) -> bool
Returns true
if the js_tag is [Undefined
].
Sourcepub fn is_exception(&self) -> bool
pub fn is_exception(&self) -> bool
Returns true
if the js_tag is [Exception
].
Sourcepub fn is_big_int(&self) -> bool
pub fn is_big_int(&self) -> bool
Returns true
if the js_tag is [BigInt
].
Sourcepub fn is_float64(&self) -> bool
pub fn is_float64(&self) -> bool
Returns true
if the js_tag is [Float64
].
Trait Implementations§
impl Copy for JsTag
impl Eq for JsTag
impl StructuralPartialEq for JsTag
Auto Trait Implementations§
impl Freeze for JsTag
impl RefUnwindSafe for JsTag
impl Send for JsTag
impl Sync for JsTag
impl Unpin for JsTag
impl UnwindSafe for JsTag
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