Skip to main content

ErasedEditable

Trait ErasedEditable 

Source
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

An Editable with its types erased, so that operations of all kinds can be kept in one Editors. Arguments come as saved.

Required Methods§

Source

fn info(&self) -> &'static OperationInfo

Source

fn new_args(&self, context: &Context<'_>) -> GeopResult<Value>

Source

fn initial_editing(&self) -> Box<dyn Any>

Source

fn presentation( &self, context: &Context<'_>, args: &Value, editing: &dyn Any, ) -> GeopResult<Form>

Source

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".

Implementors§