pub struct Value<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Value<'a>
impl<'a> Value<'a>
pub fn new(ptr: NonNull<SJ_OD_value>) -> Self
pub fn get_uint64(&mut self) -> Result<u64>
pub fn get_int64(&mut self) -> Result<i64>
pub fn get_bool(&mut self) -> Result<bool>
pub fn get_double(&mut self) -> Result<f64>
pub fn get_array(&mut self) -> Result<Array<'a>>
pub fn get_object(&mut self) -> Result<Object<'a>>
pub fn get_number(&mut self) -> Result<Number<'a>>
pub fn get_string(&mut self, allow_replacement: bool) -> Result<&'a str>
pub fn at_pointer(&mut self, json_pointer: &str) -> Result<Value<'a>>
pub fn is_null(&mut self) -> Result<bool>
pub fn json_type(&mut self) -> Result<JsonType>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Value<'a>
impl<'a> RefUnwindSafe for Value<'a>
impl<'a> !Send for Value<'a>
impl<'a> !Sync for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> !UnwindSafe for Value<'a>
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