|
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 | 6 | use std::{
|
7 | 7 | any::{Any, TypeId},
|
@@ -375,8 +375,11 @@ where
|
375 | 375 | ReflectRef::List(dyn_list) => list_debug(dyn_list, f),
|
376 | 376 | ReflectRef::Array(dyn_array) => array_debug(dyn_array, f),
|
377 | 377 | ReflectRef::Map(dyn_map) => map_debug(dyn_map, f),
|
| 378 | + ReflectRef::Set(dyn_set) => set_debug(dyn_set, f), |
378 | 379 | ReflectRef::Enum(dyn_enum) => enum_debug(dyn_enum, f),
|
379 |
| - _ => write!(f, "Reflect({})", self.reflect_type_path()), |
| 380 | + #[cfg(feature = "functions")] |
| 381 | + ReflectRef::Function(dyn_function) => dyn_function.fmt(f), |
| 382 | + ReflectRef::Value(_) => write!(f, "Reflect({})", self.reflect_type_path()), |
380 | 383 | }
|
381 | 384 | }
|
382 | 385 |
|
|
0 commit comments