pub struct Abbrev {
pub lhs: String,
pub rhs: String,
pub insert: bool,
pub cmdline: bool,
pub noremap: bool,
}Expand description
A single abbreviation entry (insert-mode or cmdline-mode, recursive or noremap).
Mode flags: insert = expand in Insert mode, cmdline = expand in Cmdline mode.
noremap stores whether the definition was made with noreabbrev; expansion
is always literal text regardless of this flag, but it is preserved for future use.
NOTE: Abbreviations are currently per-editor (global in vim would share across buffers; per-editor is equivalent for single-buffer use and is acceptable for now — cross-buffer global behaviour is a follow-up).
Fields§
§lhs: String§rhs: String§insert: bool§cmdline: bool§noremap: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for Abbrev
impl RefUnwindSafe for Abbrev
impl Send for Abbrev
impl Sync for Abbrev
impl Unpin for Abbrev
impl UnsafeUnpin for Abbrev
impl UnwindSafe for Abbrev
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