Skip to main content

Crate bevy_mod_scripting_display

Crate bevy_mod_scripting_display 

Source
Expand description

Abstractions for displaying reflect values, potentially with access to the type registry

Structs§

DebugList
Helper wrapper around std::fmt::DebugList which formats list entries using DebugWithTypeInfo so each entry can use available type information during formatting.
DebugMap
Helper wrapper around std::fmt::DebugMap that formats map keys and values using DebugWithTypeInfo so both sides of each entry can render with optional type information.
DebugSet
Helper wrapper around std::fmt::DebugSet that formats set entries using DebugWithTypeInfo so entries can render with optional type information.
DebugStruct
A utility for formatting structs but with type info available Helper wrapper around std::fmt::DebugStruct that formats struct fields using DebugWithTypeInfo so that type-aware formatting is available for each field.
DebugTuple
Helper wrapper around std::fmt::DebugTuple that formats tuple elements using DebugWithTypeInfo so elements can render with optional type information.
PrintReflectAsDebug
A wrapper type that implements Debug for any PartialReflect by using ReflectPrinter.
ReflectDisplayWithTypeInfo
A type generated by the #reflect_trait macro for the DisplayWithTypeInfo trait.
ReflectPrinter
Contains a strategy for printing a Reflect value as if it was its native Debug implementation.
WithTypeInfo
newtype adapter for opting into DisplayWithTypeInfo for any T: DisplayWithTypeInfo Use as follows
WorldAccessGuard
Provides safe access to the world via [AnyAccessMap] permissions, which enforce aliasing rules at runtime in multi-thread environments

Traits§

DebugWithTypeInfo
An extension trait for displaying values with access to type information implementations should respect the following formatter options:
DebugWithTypeInfoBuilder
Extension methods for std::fmt::Formatter which create builders that format values using DebugWithTypeInfo. These helpers mirror the standard formatter builders (debug_struct, debug_tuple, etc.) but ensure that fields, entries and keys/values are displayed through the DebugWithTypeInfo adapter.
DisplayProxy
Make a type display-able.
DisplayWithTypeInfo
An trait for displaying values with access to type information
OrFakeId
A utility for getting a TypeId or a fake one if not present