Lines Matching refs:try_as_mut_object
531 /// assert_eq!(object_value.try_as_mut_object().unwrap(), &mut Object::new());
534 /// assert!(other_value.try_as_mut_object().is_err());
536 pub fn try_as_mut_object(&mut self) -> Result<&mut Object, Error> {
1427 /// UT test for `JsonValue::try_as_mut_object`.
1434 /// 2. Calls `JsonValue::try_as_mut_object`.
1438 assert!(JsonValue::new_null().try_as_mut_object().is_err());
1439 assert!(JsonValue::new_boolean(true).try_as_mut_object().is_err());
1440 assert!(JsonValue::new_boolean(false).try_as_mut_object().is_err());
1442 .try_as_mut_object()
1444 assert!(JsonValue::new_string("hello").try_as_mut_object().is_err());
1446 .try_as_mut_object()
1449 .try_as_mut_object()