Struct quickjs_runtime::valueref::JSValueRef[][src]

pub struct JSValueRef { /* fields omitted */ }

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]

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]

impl<'a> Debug for JSValueRef[src]

impl Drop for JSValueRef[src]

impl Eq for JSValueRef[src]

impl Hash for JSValueRef[src]

impl PartialEq<JSValueRef> for JSValueRef[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,