pub trait Edit: Address + Haystack<Regex> {
// Required methods
fn insert(&mut self, ix: usize, s: &str);
fn remove(&mut self, from: usize, to: usize);
// Provided methods
fn begin_edit_transaction(&mut self) { ... }
fn end_edit_transaction(&mut self) { ... }
}Expand description
Something that can be edited by a Program
Required Methods§
Provided Methods§
Sourcefn begin_edit_transaction(&mut self)
fn begin_edit_transaction(&mut self)
Mark the start of an edit transaction
Sourcefn end_edit_transaction(&mut self)
fn end_edit_transaction(&mut self)
Mark the end of an edit transaction
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".