InspectorEnvironment

Trait InspectorEnvironment 

Source
pub trait InspectorEnvironment:
    Any
    + Send
    + Sync {
    // Required method
    fn as_any(&self) -> &(dyn Any + 'static);
}
Expand description

This trait allows dynamically typed context information to be passed to an Inspector widget. Since an Inspector might be used in applications other than Fyroxed, Inspector does not assume that InspectorEnvironment must always be fyroxed_base::inspector::EditorEnvironment. Instead, when a property editor needs to talk to the application using the Inspector, it can attempt to cast InspectorEnvironment to whatever type it might be.

Required Methods§

Source

fn as_any(&self) -> &(dyn Any + 'static)

Implementors§