Expand description
Abstractions for displaying reflect values, potentially with access to the type registry
Structs§
- Debug
List - Helper wrapper around
std::fmt::DebugListwhich formats list entries usingDebugWithTypeInfoso each entry can use available type information during formatting. - Debug
Map - Helper wrapper around
std::fmt::DebugMapthat formats map keys and values usingDebugWithTypeInfoso both sides of each entry can render with optional type information. - Debug
Set - Helper wrapper around
std::fmt::DebugSetthat formats set entries usingDebugWithTypeInfoso entries can render with optional type information. - Debug
Struct - A utility for formatting structs but with type info available
Helper wrapper around
std::fmt::DebugStructthat formats struct fields usingDebugWithTypeInfoso that type-aware formatting is available for each field. - Debug
Tuple - Helper wrapper around
std::fmt::DebugTuplethat formats tuple elements usingDebugWithTypeInfoso elements can render with optional type information. - Print
Reflect AsDebug - A wrapper type that implements
Debugfor anyPartialReflectby usingReflectPrinter. - Reflect
Display With Type Info - A type generated by the #reflect_trait macro for the
DisplayWithTypeInfotrait. - Reflect
Printer - Contains a strategy for printing a
Reflectvalue as if it was its nativeDebugimplementation. - With
Type Info - newtype adapter for opting into
DisplayWithTypeInfofor any T:DisplayWithTypeInfoUse 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::Formatterwhich 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 theDebugWithTypeInfoadapter. - Display
Proxy - Make a type display-able.
- 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