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