Lines Matching refs:Value
19 enum Value { enum
23 Array(Vec<Value>),
27 type Object = Vec<(String, Value)>;
46 impl Display for Value { implementation
49 Value::Boolean(boolean) => write!(formatter, "{}", boolean), in fmt()
50 Value::Number(number) => write!(formatter, "{}", number), in fmt()
51 Value::String(string) => write!(formatter, "\"{}\"", string), in fmt()
52 Value::Array(values) => { in fmt()
57 Value::Object(object) => { in fmt()
68 impl From<bool> for Value { implementation
74 impl From<i32> for Value { implementation
80 impl From<String> for Value { implementation
86 impl From<&str> for Value { implementation
92 impl From<Object> for Value { implementation
98 impl<T: Into<Value>, const N: usize> From<[T; N]> for Value { implementation
111 fn push(&mut self, key: &str, value: impl Into<Value>) { in push() argument
257 vec![("kind".to_string(), Value::String("none".to_string()))], in main()