pub struct PluginEdit {
pub rev: u64,
pub delta: RopeDelta,
pub priority: u64,
pub after_cursor: bool,
pub undo_group: Option<usize>,
pub author: String,
}
Expand description
A simple edit, received from a plugin.
Fields§
§rev: u64
§delta: RopeDelta
§priority: u64
the edit priority determines the resolution strategy when merging concurrent edits. The highest priority edit will be applied last.
after_cursor: bool
whether the inserted text prefers to be to the right of the cursor.
undo_group: Option<usize>
the originator of this edit: some identifier (plugin name, ‘core’, etc) undo_group associated with this edit
Trait Implementations§
Source§impl Clone for PluginEdit
impl Clone for PluginEdit
Source§fn clone(&self) -> PluginEdit
fn clone(&self) -> PluginEdit
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PluginEdit
impl Debug for PluginEdit
Source§impl<'de> Deserialize<'de> for PluginEdit
impl<'de> Deserialize<'de> for PluginEdit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PluginEdit
impl RefUnwindSafe for PluginEdit
impl Send for PluginEdit
impl Sync for PluginEdit
impl Unpin for PluginEdit
impl UnwindSafe for PluginEdit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more