pub struct EditContext<'a> {
pub buffers: &'a mut BufferSet,
pub active: Option<BufferId>,
pub state: &'a mut ModalState,
pub quit_requested: &'a mut bool,
}Fields§
§buffers: &'a mut BufferSet§active: Option<BufferId>§state: &'a mut ModalState§quit_requested: &'a mut boolTyped quit signal. A command that wants to exit the editor sets
this to true; the runtime reads it after run. This replaces the
old stringly-typed __quit__ sentinel that was smuggled through the
command minibuffer — a channel that only existed because minibuffer
used to be a mode-independent scratch String. With the typed
modal sum, the minibuffer exists only in Command mode, so quit is now
a proper typed flag, not a buffer hack.
Auto Trait Implementations§
impl<'a> !UnwindSafe for EditContext<'a>
impl<'a> Freeze for EditContext<'a>
impl<'a> RefUnwindSafe for EditContext<'a>
impl<'a> Send for EditContext<'a>
impl<'a> Sync for EditContext<'a>
impl<'a> Unpin for EditContext<'a>
impl<'a> UnsafeUnpin for EditContext<'a>
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