Expand description
Abstractions for displaying reflect values, potentially with access to the type registry
Structs§
- Debug
List - Helper wrapper around
std::fmt::DebugList
which formats list entries usingDebugWithTypeInfo
so each entry can use available type information during formatting. - Debug
Map - Helper wrapper around
std::fmt::DebugMap
that formats map keys and values usingDebugWithTypeInfo
so both sides of each entry can render with optional type information. - Debug
Set - Helper wrapper around
std::fmt::DebugSet
that formats set entries usingDebugWithTypeInfo
so entries can render with optional type information. - Debug
Struct - A utility for formatting structs but with type info available
Helper wrapper around
std::fmt::DebugStruct
that formats struct fields usingDebugWithTypeInfo
so that type-aware formatting is available for each field. - Debug
Tuple - Helper wrapper around
std::fmt::DebugTuple
that formats tuple elements usingDebugWithTypeInfo
so elements can render with optional type information. - Print
Reflect AsDebug - A wrapper type that implements
Debug
for anyPartialReflect
by usingReflectPrinter
. - Reflect
Display With Type Info - A type generated by the #reflect_trait macro for the
DisplayWithTypeInfo
trait. - Reflect
Printer - Contains a strategy for printing a
Reflect
value as if it was its nativeDebug
implementation. - With
Type Info - newtype adapter for opting into
DisplayWithTypeInfo
for any T:DisplayWithTypeInfo
Use as follows
Statics§
- GLOBAL_
TYPE_ INFO_ PROVIDER - A global type info provider that can be set once and used throughout the application It does not do the retrieval itself, but provides a function that points to the retrieval mechanism.
Traits§
- Debug
With Type Info - An extension trait for displaying values with access to type information implementations should respect the following formatter options:
- Debug
With Type Info Builder - Extension methods for
std::fmt::Formatter
which create builders that format values usingDebugWithTypeInfo
. These helpers mirror the standard formatter builders (debug_struct
,debug_tuple
, etc.) but ensure that fields, entries and keys/values are displayed through theDebugWithTypeInfo
adapter. - Display
With Type Info - An trait for displaying values with access to type information
- GetType
Info - An abstraction for getting type information, potentially using the type registry.
- GetType
Info Extensions - Extension trait for GetTypeInfo which provides non-type safe extensions
- OrFake
Id - A utility for getting a TypeId or a fake one if not present