pub enum ValueRef<'a> {
Null,
Bool(bool),
U64(u64),
I64(i64),
F64(f64),
String(&'a str),
Array(&'a [IValue]),
Object(HashMap<&'a str, &'a IValue>),
}Expand description
A shallow reference to a JSON value.
Variants§
Null
JSON null value.
Bool(bool)
JSON boolean value.
U64(u64)
JSON number that fits in a u64.
I64(i64)
JSON number that fits in a i64.
F64(f64)
JSON number that fits in a f64.
String(&'a str)
JSON string.
Array(&'a [IValue])
JSON array.
Object(HashMap<&'a str, &'a IValue>)
JSON object.
Auto Trait Implementations§
impl<'a> Freeze for ValueRef<'a>
impl<'a> RefUnwindSafe for ValueRef<'a>
impl<'a> Send for ValueRef<'a>
impl<'a> Sync for ValueRef<'a>
impl<'a> Unpin for ValueRef<'a>
impl<'a> UnwindSafe for ValueRef<'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