Struct javascriptcore::ValueRef
source · pub struct ValueRef { /* private fields */ }
Implementations§
source§impl ValueRef
impl ValueRef
pub fn is_boolean(&self, context: &GlobalContextRef) -> bool
pub fn is_null(&self, context: &GlobalContextRef) -> bool
pub fn is_undefined(&self, context: &GlobalContextRef) -> bool
pub fn is_number(&self, context: &GlobalContextRef) -> bool
pub fn is_string(&self, context: &GlobalContextRef) -> bool
pub fn is_object(&self, context: &GlobalContextRef) -> bool
pub fn is_array(&self, context: &GlobalContextRef) -> bool
pub fn is_date(&self, context: &GlobalContextRef) -> bool
pub fn to_number(&self, context: &GlobalContextRef) -> Option<f64>
pub fn to_boolean(&self, context: &GlobalContextRef) -> bool
pub fn to_string(&self, context: &GlobalContextRef) -> Option<String>
Trait Implementations§
source§impl FromGlibPtrFull<*mut _JSValueRef> for ValueRef
impl FromGlibPtrFull<*mut _JSValueRef> for ValueRef
source§unsafe fn from_glib_full(ptr: JSValueRef) -> Self
unsafe fn from_glib_full(ptr: JSValueRef) -> Self
Safety Read more
source§impl FromGlibPtrNone<*mut _JSValueRef> for ValueRef
impl FromGlibPtrNone<*mut _JSValueRef> for ValueRef
source§unsafe fn from_glib_none(ptr: JSValueRef) -> Self
unsafe fn from_glib_none(ptr: JSValueRef) -> Self
Safety Read more
source§impl<'a> ToGlibPtr<'a, *mut _JSValueRef> for ValueRef
impl<'a> ToGlibPtr<'a, *mut _JSValueRef> for ValueRef
type Storage = ()
source§fn to_glib_none(&self) -> Stash<'a, JSValueRef, ValueRef>
fn to_glib_none(&self) -> Stash<'a, JSValueRef, ValueRef>
Transfer: none. Read more
source§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
source§fn to_glib_full(&self) -> P
fn to_glib_full(&self) -> P
Transfer: full. Read more