Lines Matching refs:JsonValue
14 use crate::JsonValue;
45 inner: Vec<(String, JsonValue)>,
119 pub fn insert(&mut self, key: String, value: JsonValue) { in insert() argument
136 pub fn remove(&mut self, key: &str) -> Option<JsonValue> { in remove() argument
150 pub fn iter(&self) -> Iter<'_, (String, JsonValue)> { in iter() argument
163 pub fn iter_mut(&mut self) -> IterMut<'_, (String, JsonValue)> { in iter_mut() argument
180 pub fn get(&self, key: &str) -> Option<&JsonValue> { in get() argument
197 pub fn get_mut(&mut self, key: &str) -> Option<&mut JsonValue> { in get_mut() argument
205 pub(crate) fn last_mut(&mut self) -> Option<&mut JsonValue> { in last_mut() argument
209 pub(crate) fn get_mut_by_position(&mut self, index: usize) -> Option<&mut JsonValue> { in get_mut_by_position() argument
266 use crate::{JsonValue, Object};
299 Some(&mut (String::from("key1"), JsonValue::new_string("value1"))) in ut_object_iter_mut()
318 Some(&mut JsonValue::new_string("value1")) in ut_object_get_mut()