Lines Matching refs:to_value
20 fn to_value(&self) -> Value; in to_value() method
27 fn to_value(&self) -> Value { in to_value() function
28 (**self).to_value() in to_value()
33 fn to_value(&self) -> Value { in to_value() method
119 value.to_value() in from_any()
281 fn to_value(&self) -> Value { in to_value() method
287 fn to_value(&self) -> Value { in to_value() method
294 fn to_value(&self) -> Value { in to_value() method
318 fn to_value(&self) -> Value { in to_value() method
324 fn to_value(&self) -> Value { in to_value() method
336 fn to_value(&self) -> Value { in to_value() method
345 fn to_value(&self) -> Value { in to_value() function
347 Some(ref value) => value.to_value(), in to_value()
357 fn to_value(&self) -> Value {
428 fn to_value(&self) -> Value { in to_value() function
429 (**self).to_value() in to_value()
434 fn to_value(&self) -> Value { in to_value() method
440 fn to_value(&self) -> Value { in to_value() method
539 assert_eq!(42u64.to_value().to_string(), "42"); in test_to_value_display()
540 assert_eq!(42i64.to_value().to_string(), "42"); in test_to_value_display()
541 assert_eq!(42.01f64.to_value().to_string(), "42.01"); in test_to_value_display()
542 assert_eq!(true.to_value().to_string(), "true"); in test_to_value_display()
543 assert_eq!('a'.to_value().to_string(), "a"); in test_to_value_display()
544 assert_eq!("a loong string".to_value().to_string(), "a loong string"); in test_to_value_display()
545 assert_eq!(Some(true).to_value().to_string(), "true"); in test_to_value_display()
546 assert_eq!(().to_value().to_string(), "None"); in test_to_value_display()
547 assert_eq!(Option::None::<bool>.to_value().to_string(), "None"); in test_to_value_display()
552 assert_eq!(42u64.to_value().to_token(), Token::U64(42)); in test_to_value_structured()
553 assert_eq!(42i64.to_value().to_token(), Token::I64(42)); in test_to_value_structured()
554 assert_eq!(42.01f64.to_value().to_token(), Token::F64(42.01)); in test_to_value_structured()
555 assert_eq!(true.to_value().to_token(), Token::Bool(true)); in test_to_value_structured()
556 assert_eq!('a'.to_value().to_token(), Token::Char('a')); in test_to_value_structured()
558 "a loong string".to_value().to_token(), in test_to_value_structured()
561 assert_eq!(Some(true).to_value().to_token(), Token::Bool(true)); in test_to_value_structured()
562 assert_eq!(().to_value().to_token(), Token::None); in test_to_value_structured()
563 assert_eq!(Option::None::<bool>.to_value().to_token(), Token::None); in test_to_value_structured()