Lines Matching refs:RawValue
112 pub struct RawValue { struct
116 impl RawValue { implementation
118 unsafe { mem::transmute::<&str, &RawValue>(json) } in from_borrowed()
122 unsafe { mem::transmute::<Box<str>, Box<RawValue>>(json) } in from_owned()
126 impl Clone for Box<RawValue> {
132 impl ToOwned for RawValue { implementation
133 type Owned = Box<RawValue>;
136 RawValue::from_owned(self.json.to_owned().into_boxed_str()) in to_owned()
140 impl Default for Box<RawValue> {
142 RawValue::from_borrowed("null").to_owned() in default()
146 impl Debug for RawValue { implementation
155 impl Display for RawValue { implementation
161 impl RawValue { implementation
270 pub fn to_raw_value<T>(value: &T) -> Result<Box<RawValue>, Error> in to_raw_value() argument
275 Ok(RawValue::from_owned(json_string.into_boxed_str())) in to_raw_value()
280 impl Serialize for RawValue { implementation
291 impl<'de: 'a, 'a> Deserialize<'de> for &'a RawValue { implementation
299 type Value = &'de RawValue; in deserialize()
321 impl<'de> Deserialize<'de> for Box<RawValue> {
329 type Value = Box<RawValue>; in deserialize()
387 type Value = &'de RawValue;
398 type Value = &'de RawValue;
408 Ok(RawValue::from_borrowed(s)) in visit_borrowed_str()
415 type Value = Box<RawValue>;
426 type Value = Box<RawValue>;
443 Ok(RawValue::from_owned(s.into_boxed_str())) in visit_string()