pub trait ErasedInspector {
// Required methods
fn info(&self) -> &'static InspectorInfo;
fn inspect(
&self,
output: &mut Output<'_>,
picked: &[PickedElement],
options: &Value,
) -> GeopResult<Inspection>;
}Expand description
An Inspector with its types erased, so that inspectors of all kinds
can be kept in one super::Outputs. Every inspector is one, through
its value.
Required Methods§
fn info(&self) -> &'static InspectorInfo
Sourcefn inspect(
&self,
output: &mut Output<'_>,
picked: &[PickedElement],
options: &Value,
) -> GeopResult<Inspection>
fn inspect( &self, output: &mut Output<'_>, picked: &[PickedElement], options: &Value, ) -> GeopResult<Inspection>
The answer about output, of picked, with options as sent.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".