pub struct KeymapDiff {
pub added: Vec<DocBinding>,
pub removed: Vec<DocBinding>,
pub changed: Vec<(DocBinding, DocBinding)>,
pub skipped: Vec<String>,
pub conflicts: Vec<String>,
}Expand description
What loading a keymap document changes, against what was there.
Fields§
§added: Vec<DocBinding>Bindings the document adds.
removed: Vec<DocBinding>Bindings it drops.
changed: Vec<(DocBinding, DocBinding)>Bindings on the same keys, scope and clause whose command changed: before, after.
skipped: Vec<String>Bindings that do not parse, skipped.
conflicts: Vec<String>Keys two commands claim in one scope after the load: loser, winner.
Implementations§
Trait Implementations§
Source§impl Clone for KeymapDiff
impl Clone for KeymapDiff
Source§fn clone(&self) -> KeymapDiff
fn clone(&self) -> KeymapDiff
Returns a duplicate 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 KeymapDiff
impl Debug for KeymapDiff
Source§impl Default for KeymapDiff
impl Default for KeymapDiff
Source§fn default() -> KeymapDiff
fn default() -> KeymapDiff
Returns the “default value” for a type. Read more
Source§impl PartialEq for KeymapDiff
impl PartialEq for KeymapDiff
Source§impl Serialize for KeymapDiff
impl Serialize for KeymapDiff
impl StructuralPartialEq for KeymapDiff
Auto Trait Implementations§
impl Freeze for KeymapDiff
impl RefUnwindSafe for KeymapDiff
impl Send for KeymapDiff
impl Sync for KeymapDiff
impl Unpin for KeymapDiff
impl UnsafeUnpin for KeymapDiff
impl UnwindSafe for KeymapDiff
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