pub trait InspectableValue {
// Required method
fn record<I>(&self, name: &str, inspector: &mut I)
where I: Inspector;
}
Expand description
A trait that marks a type as inspectable.
This trait is used for types that are exposed to Inspector
s many times
so recording them can be deduplicated.
This type differs from Inspectable
in that it receives a name
parameter. This is typically used for types that record a single entry.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.