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
Auto Trait Implementations§
impl Freeze for ValueRef
impl RefUnwindSafe for ValueRef
impl !Send for ValueRef
impl !Sync for ValueRef
impl Unpin for ValueRef
impl UnwindSafe for ValueRef
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