#[repr(C)]pub struct JSValue {
pub u: JSValueUnion,
pub tag: i64,
}Fields§
§u: JSValueUnion§tag: i64Implementations§
Source§impl JSValue
impl JSValue
pub fn new_int32(val: i32) -> JSValue
pub fn new_bool(val: bool) -> JSValue
pub fn new_float64(val: f64) -> JSValue
pub fn new_ptr(tag: i32, ptr: *mut c_void) -> JSValue
pub fn has_ref_count(&self) -> bool
pub fn get_ptr(&self) -> *mut c_void
pub fn get_tag(&self) -> i32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JSValue
impl RefUnwindSafe for JSValue
impl !Send for JSValue
impl !Sync for JSValue
impl Unpin for JSValue
impl UnwindSafe for JSValue
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