#[repr(u32)]pub enum JSType {
Undefined = 0,
Null = 1,
Boolean = 2,
Number = 3,
String = 4,
Object = 5,
Symbol = 6,
}Expand description
A constant identifying the type of a JSValueRef.
Variants§
Undefined = 0
The unique undefined value.
Null = 1
The unique null value.
Boolean = 2
A primitive boolean value, one of true or false.
Number = 3
A primitive number value.
String = 4
A primitive string value.
Object = 5
An object value (meaning that this JSValueRef is a JSObjectRef).
Symbol = 6
A primitive symbol value.
Trait Implementations§
impl Copy for JSType
impl Eq for JSType
impl StructuralPartialEq for JSType
Auto Trait Implementations§
impl Freeze for JSType
impl RefUnwindSafe for JSType
impl Send for JSType
impl Sync for JSType
impl Unpin for JSType
impl UnwindSafe for JSType
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