pub trait ExtensionData:
Any
+ Debug
+ Send
+ Sync {
// Required method
fn as_any(&self) -> &dyn Any;
}Expand description
Trait for typed data stored in DisplayCapabilities::extension_data by custom handlers.
A blanket implementation covers any type that is Any + Debug + Send + Sync, so consumers
do not need to implement this trait manually — #[derive(Debug)] on a Send + Sync type
is sufficient.