Lines Matching refs:from
21 /// Gets a common reference to the value with the specified subscript (or key) from a JsonValue.
24 /// Gets a mutable reference to the value of the specified subscript (or key) from a JsonValue.
27 /// Removes the member with the specified subscript (or key) from a JsonValue.
163 /// object.insert(String::from("key"), JsonValue::Number(0.0.into()));
196 /// object.insert(String::from("key"), JsonValue::Number(0.0.into()));
203 /// object.insert(String::from("key"), JsonValue::Number(0.0.into()));
227 object.insert(String::from(self), JsonValue::Null);
233 object.insert(String::from(self), JsonValue::Null);
249 /// object.insert(String::from("key"), "value".into());
442 assert!(String::from("key").index_into(&value).is_null());
457 assert!(String::from("key1").index_into_mut(&mut value).is_string());
458 assert!(String::from("key2").index_into_mut(&mut value).is_null());
461 assert!(String::from("key1").index_into_mut(&mut value).is_null());
478 String::from("key1").index_remove(&mut value),
481 assert!(String::from("key1").index_remove(&mut value).is_none());