pub struct Editor<I: Iterator<Item = Result<InputSeq>>, W: Write> { /* private fields */ }Implementations§
Source§impl<I, W> Editor<I, W>
impl<I, W> Editor<I, W>
pub fn new( input: I, output: W, window_size: Option<(usize, usize)>, ) -> Result<Editor<I, W>>
pub fn with_lines<S: AsRef<str>, L: Iterator<Item = S>>( lines: L, input: I, output: W, window_size: Option<(usize, usize)>, ) -> Result<Editor<I, W>>
pub fn open<P: AsRef<Path>>( input: I, output: W, window_size: Option<(usize, usize)>, paths: &[P], ) -> Result<Editor<I, W>>
pub fn buf(&self) -> &TextBuffer
pub fn first_paint(&mut self) -> Result<Edit<'_, I, W>>
pub fn edit(&mut self) -> Result<()>
pub fn lines(&self) -> Lines<'_> ⓘ
pub fn screen(&self) -> &Screen<W>
pub fn lang(&self) -> Language
pub fn set_lang(&mut self, lang: Language)
Auto Trait Implementations§
impl<I, W> Freeze for Editor<I, W>
impl<I, W> RefUnwindSafe for Editor<I, W>where
I: RefUnwindSafe,
W: RefUnwindSafe,
impl<I, W> Send for Editor<I, W>
impl<I, W> Sync for Editor<I, W>
impl<I, W> Unpin for Editor<I, W>
impl<I, W> UnwindSafe for Editor<I, W>where
I: UnwindSafe,
W: UnwindSafe,
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