pub struct ReflectedSection<'a> {
pub title: &'a str,
pub value: &'a dyn Reflect,
}Expand description
A DebugModule for any Reflect value: a section titled title with
one row per leaf, labelled by its path of field labels.
An enum adds a row naming its active variant; a list of leaves is one
comma-separated row; a float shows REFLECTED_DECIMALS places; a value
that is itself a leaf is labelled with its type’s name. Read-only: the
panel is never handed the &mut dyn Reflect an edit would need.
Fields§
§title: &'a strThe section’s heading — a system’s name, for a selected entity.
value: &'a dyn ReflectThe value its rows describe.
Trait Implementations§
Source§impl<'a> Clone for ReflectedSection<'a>
impl<'a> Clone for ReflectedSection<'a>
impl<'a> Copy for ReflectedSection<'a>
Source§impl Debug for ReflectedSection<'_>
impl Debug for ReflectedSection<'_>
Source§impl DebugModule for ReflectedSection<'_>
impl DebugModule for ReflectedSection<'_>
Source§fn debug_section(&self, out: &mut DebugSection)
fn debug_section(&self, out: &mut DebugSection)
Writes this system’s title and rows into
out.Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ReflectedSection<'a>
impl<'a> !Send for ReflectedSection<'a>
impl<'a> !Sync for ReflectedSection<'a>
impl<'a> !UnwindSafe for ReflectedSection<'a>
impl<'a> Forget for ReflectedSection<'a>
impl<'a> Freeze for ReflectedSection<'a>
impl<'a> Unpin for ReflectedSection<'a>
impl<'a> UnsafeUnpin for ReflectedSection<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more