Lines Matching refs:Value
19 enum Value { enum
26 type Object = Vec<(String, Value)>;
30 impl Display for Value { implementation
33 Value::Boolean(boolean) => write!(formatter, "{}", boolean), in fmt()
34 Value::Number(number) => write!(formatter, "{}", number), in fmt()
35 Value::String(string) => write!(formatter, "\"{}\"", string), in fmt()
36 Value::Object(object) => { in fmt()
64 self.0.push((key.to_string(), Value::Boolean(value))); in push()
70 self.0.push((key.to_string(), Value::Number(value))); in push()
76 self.0.push((key.to_string(), Value::String(value))); in push()
88 self.0.push((key.to_string(), Value::Object(value))); in push()
172 vec![("kind".to_string(), Value::String("none".to_string()))], in main()