pub struct EdState<'a> {
pub selection: &'a Option<(usize, usize)>,
pub buffer: &'a dyn Buffer,
pub path: &'a str,
}Expand description
A small reference struct that gives insight into the editor’s state
Fields
selection: &'a Option<(usize, usize)>buffer: &'a dyn Bufferpath: &'a strAuto Trait Implementations
impl<'a> !RefUnwindSafe for EdState<'a>
impl<'a> !Send for EdState<'a>
impl<'a> !Sync for EdState<'a>
impl<'a> Unpin for EdState<'a>
impl<'a> !UnwindSafe for EdState<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more