|
1 | 1 | use crate::{
|
2 |
| - array_debug, enum_debug, list_debug, map_debug, serde::Serializable, struct_debug, tuple_debug, |
3 |
| - tuple_struct_debug, Array, DynamicTypePath, DynamicTyped, Enum, List, Map, Set, Struct, Tuple, |
4 |
| - TupleStruct, TypeInfo, TypePath, Typed, ValueInfo, |
| 2 | + array_debug, enum_debug, list_debug, map_debug, serde::Serializable, set_debug, struct_debug, |
| 3 | + tuple_debug, tuple_struct_debug, Array, DynamicTypePath, DynamicTyped, Enum, List, Map, Set, |
| 4 | + Struct, Tuple, TupleStruct, TypeInfo, TypePath, Typed, ValueInfo, |
5 | 5 | };
|
| 6 | +use core::fmt::Pointer; |
6 | 7 | use std::{
|
7 | 8 | any::{Any, TypeId},
|
8 | 9 | fmt::Debug,
|
@@ -375,8 +376,11 @@ where
|
375 | 376 | ReflectRef::List(dyn_list) => list_debug(dyn_list, f),
|
376 | 377 | ReflectRef::Array(dyn_array) => array_debug(dyn_array, f),
|
377 | 378 | ReflectRef::Map(dyn_map) => map_debug(dyn_map, f),
|
| 379 | + ReflectRef::Set(dyn_set) => set_debug(dyn_set, f), |
378 | 380 | ReflectRef::Enum(dyn_enum) => enum_debug(dyn_enum, f),
|
379 |
| - _ => write!(f, "Reflect({})", self.reflect_type_path()), |
| 381 | + #[cfg(feature = "functions")] |
| 382 | + ReflectRef::Function(dyn_function) => dyn_function.fmt(f), |
| 383 | + ReflectRef::Value(_) => write!(f, "Reflect({})", self.reflect_type_path()), |
380 | 384 | }
|
381 | 385 | }
|
382 | 386 |
|
|
0 commit comments