pub trait Editor: Send + Sync {
// Required methods
fn decode(&self, cx: &mut Cx, value: &Expr, intent: &Expr) -> Result<Draft>;
fn commit(&self, cx: &mut Cx, draft: &Draft) -> Result<Operation>;
}Expand description
An editor decoder: (Value, Intent) -> Draft, then Draft -> operation.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".