pub trait ErasedEditable: ErasedOperation {
// Required methods
fn info(&self) -> &'static OperationInfo;
fn new_args(&self, context: &Context<'_>) -> GeopResult<Value>;
fn initial_editing(&self) -> Box<dyn Any>;
fn presentation(
&self,
context: &Context<'_>,
args: &Value,
editing: &dyn Any,
) -> GeopResult<Form>;
fn process_user_event(
&self,
context: &Context<'_>,
args: &Value,
editing: &dyn Any,
event: Event,
) -> GeopResult<Edited>;
}Expand description
Required Methods§
fn info(&self) -> &'static OperationInfo
fn new_args(&self, context: &Context<'_>) -> GeopResult<Value>
fn initial_editing(&self) -> Box<dyn Any>
fn presentation( &self, context: &Context<'_>, args: &Value, editing: &dyn Any, ) -> GeopResult<Form>
fn process_user_event( &self, context: &Context<'_>, args: &Value, editing: &dyn Any, event: Event, ) -> GeopResult<Edited>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".