Struct kiro_editor::Editor [−][src]
Implementations
impl<I, W> Editor<I, W> where
I: Iterator<Item = Result<InputSeq>>,
W: Write,
[src]
I: Iterator<Item = Result<InputSeq>>,
W: Write,
pub fn new(
input: I,
output: W,
window_size: Option<(usize, usize)>
) -> Result<Editor<I, W>>
[src]
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>>
[src]
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>>
[src]
input: I,
output: W,
window_size: Option<(usize, usize)>,
paths: &[P]
) -> Result<Editor<I, W>>
pub fn buf(&self) -> &TextBuffer
[src]
pub fn first_paint(&mut self) -> Result<Edit<'_, I, W>>
[src]
pub fn edit(&mut self) -> Result<()>
[src]
pub fn lines(&self) -> Lines<'_>ⓘ
[src]
pub fn screen(&self) -> &Screen<W>
[src]
pub fn lang(&self) -> Language
[src]
pub fn set_lang(&mut self, lang: Language)
[src]
Auto Trait Implementations
impl<I, W> RefUnwindSafe for Editor<I, W> where
I: RefUnwindSafe,
W: RefUnwindSafe,
I: RefUnwindSafe,
W: RefUnwindSafe,
impl<I, W> Send for Editor<I, W> where
I: Send,
W: Send,
I: Send,
W: Send,
impl<I, W> Sync for Editor<I, W> where
I: Sync,
W: Sync,
I: Sync,
W: Sync,
impl<I, W> Unpin for Editor<I, W> where
I: Unpin,
W: Unpin,
I: Unpin,
W: Unpin,
impl<I, W> UnwindSafe for Editor<I, W> where
I: UnwindSafe,
W: UnwindSafe,
I: UnwindSafe,
W: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,