[][src]Struct kiro_editor::Editor

pub struct Editor<I: Iterator<Item = Result<InputSeq>>, W: Write> { /* fields omitted */ }

Implementations

impl<I, W> Editor<I, W> where
    I: Iterator<Item = Result<InputSeq>>,
    W: Write
[src]

pub fn new(
    input: I,
    output: W,
    window_size: Option<(usize, usize)>
) -> Result<Editor<I, W>>
[src]

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]

pub fn open<P: AsRef<Path>>(
    input: I,
    output: W,
    window_size: Option<(usize, usize)>,
    paths: &[P]
) -> Result<Editor<I, W>>
[src]

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

Important traits for Lines<'a>

impl<'a> Iterator for Lines<'a> type Item = &'a str;
[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

impl<I, W> Send for Editor<I, W> where
    I: Send,
    W: Send

impl<I, W> Sync for Editor<I, W> where
    I: Sync,
    W: Sync

impl<I, W> Unpin for Editor<I, W> where
    I: Unpin,
    W: Unpin

impl<I, W> UnwindSafe for Editor<I, W> where
    I: UnwindSafe,
    W: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.