Skip to main content

EditObserver

Trait EditObserver 

Source
pub trait EditObserver {
    // Required method
    fn on_change(&mut self, event: ChangeEvent);
}
Expand description

Sink the editor’s edit pipeline notifies after each successful command. Implementors typically debounce these signals to drive UI refresh, transport scheduling, or persistence.

Required Methods§

Source

fn on_change(&mut self, event: ChangeEvent)

Called once per successful Module::apply with a summary of the mutation that just landed.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§