pub struct EditorWindow<'a> { /* private fields */ }Expand description
EditorState read through the counter.
Borrowed, never copied: building it is free, so a command dispatch does not pay for a snapshot of the buffers.
Trait Implementations§
Source§impl CursorView for EditorWindow<'_>
impl CursorView for EditorWindow<'_>
Source§impl SearchView for EditorWindow<'_>
impl SearchView for EditorWindow<'_>
Source§impl Snapshot for EditorWindow<'_>
impl Snapshot for EditorWindow<'_>
Source§fn active(&self) -> Option<&dyn BufferView>
fn active(&self) -> Option<&dyn BufferView>
The buffer the operator is in, if any.
Source§fn buffer_ids(&self) -> Vec<BufferId>
fn buffer_ids(&self) -> Vec<BufferId>
Every open buffer id, in a stable order.
Source§fn cursor(&self) -> &dyn CursorView
fn cursor(&self) -> &dyn CursorView
Cursor + mode.
Source§fn option(&self, name: &str) -> Option<&str>
fn option(&self, name: &str) -> Option<&str>
An editor option (
number, tabstop, mapleader, …).Source§fn search(&self) -> &dyn SearchView
fn search(&self) -> &dyn SearchView
The search session — the view
EditContext could not reach, and the
reason :noh was special-cased inside the runtime for so long.Source§fn syntax(&self) -> &dyn SyntaxView
fn syntax(&self) -> &dyn SyntaxView
Language facts for the active buffer.
Source§impl SyntaxView for EditorWindow<'_>
impl SyntaxView for EditorWindow<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for EditorWindow<'a>
impl<'a> !UnwindSafe for EditorWindow<'a>
impl<'a> Freeze for EditorWindow<'a>
impl<'a> Send for EditorWindow<'a>
impl<'a> Sync for EditorWindow<'a>
impl<'a> Unpin for EditorWindow<'a>
impl<'a> UnsafeUnpin for EditorWindow<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.