pub struct Object<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Object<'a>
impl<'a> Object<'a>
pub fn null(&mut self, key: &str) -> &mut Self
pub fn bool(&mut self, key: &str, value: bool) -> &mut Self
pub fn number(&mut self, key: &str, value: f64) -> &mut Self
pub fn string(&mut self, key: &str, value: &str) -> &mut Self
pub fn object(&mut self, key: &str) -> Object<'_>
pub fn array(&mut self, key: &str) -> Array<'_>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Object<'a>
impl<'a> RefUnwindSafe for Object<'a>
impl<'a> Send for Object<'a>
impl<'a> Sync for Object<'a>
impl<'a> Unpin for Object<'a>
impl<'a> !UnwindSafe for Object<'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