Struct quickjs_runtime::valueref::JSValueRef [−][src]
Implementations
impl JSValueRef
[src]
pub fn get_tag(&self) -> i64
[src]
pub fn new_no_context(value: JSValue, label: &str) -> Self
[src]
pub fn new(
context: *mut JSContext,
value: JSValue,
ref_ct_incr: bool,
ref_ct_decr_on_drop: bool,
label: &str
) -> Self
[src]
context: *mut JSContext,
value: JSValue,
ref_ct_incr: bool,
ref_ct_decr_on_drop: bool,
label: &str
) -> Self
pub fn get_ref_count(&self) -> i32
[src]
pub fn clone_value_incr_rc(&self) -> JSValue
[src]
borrow the value but first increment the refcount, this is useful for when the value is returned or passed to functions
pub fn borrow_value(&self) -> &JSValue
[src]
pub fn borrow_value_mut(&mut self) -> &mut JSValue
[src]
pub fn is_null_or_undefined(&self) -> bool
[src]
pub fn is_undefined(&self) -> bool
[src]
return true if the wrapped value represents a JS null value
pub fn is_null(&self) -> bool
[src]
return true if the wrapped value represents a JS null value
pub fn is_bool(&self) -> bool
[src]
return true if the wrapped value represents a JS boolean value
pub fn is_i32(&self) -> bool
[src]
return true if the wrapped value represents a JS INT value
pub fn is_module(&self) -> bool
[src]
return true if the wrapped value represents a Module
pub fn is_compiled_function(&self) -> bool
[src]
return true if the wrapped value represents a compiled function
pub fn is_f64(&self) -> bool
[src]
return true if the wrapped value represents a JS F64 value
pub fn is_big_int(&self) -> bool
[src]
pub fn is_exception(&self) -> bool
[src]
return true if the wrapped value represents a JS Exception value
pub fn is_object(&self) -> bool
[src]
return true if the wrapped value represents a JS Object value
pub fn is_string(&self) -> bool
[src]
return true if the wrapped value represents a JS String value
Trait Implementations
impl Clone for JSValueRef
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for JSValueRef
[src]
impl Drop for JSValueRef
[src]
impl Eq for JSValueRef
[src]
impl Hash for JSValueRef
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<JSValueRef> for JSValueRef
[src]
Auto Trait Implementations
impl RefUnwindSafe for JSValueRef
impl !Send for JSValueRef
impl !Sync for JSValueRef
impl Unpin for JSValueRef
impl UnwindSafe for JSValueRef
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,