Struct rsjsonnet_lang::program::Value
source · pub struct Value { /* private fields */ }Expand description
Implementations§
source§impl Value
impl Value
pub fn kind(&self) -> ValueKind
pub fn is_null(&self) -> bool
pub fn is_bool(&self) -> bool
pub fn as_bool(&self) -> Option<bool>
pub fn is_number(&self) -> bool
pub fn as_number(&self) -> Option<f64>
pub fn is_string(&self) -> bool
pub fn to_string(&self) -> Option<String>
pub fn is_array(&self) -> bool
pub fn to_array(&self) -> Option<Vec<Self>>
pub fn is_object(&self) -> bool
pub fn to_object(&self) -> Option<Vec<(InternedStr, Self)>>
pub fn is_function(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Value
impl !RefUnwindSafe for Value
impl !Send for Value
impl !Sync for Value
impl Unpin for Value
impl !UnwindSafe for Value
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)