Trait savefile::IntrospectItem [−][src]
pub trait IntrospectItem<'a> { fn key(&self) -> &str; fn val(&self) -> &dyn Introspect; }
Expand description
A child of an object implementing Introspect. Is a key-value pair. The only reason this is not
simply (String, &dyn Introspect) is that Mutex wouldn’t be introspectable in that case.
Mutex needs something like (String, MutexGuard
Required methods
Should return a descriptive string for the given child. For structures, this would be the field name, for instance.
fn val(&self) -> &dyn Introspect
[src]
fn val(&self) -> &dyn Introspect
[src]The introspectable value of the child.