pub struct Input {
pub lines: Vec<Line>,
pub current_row: u16,
pub cursor_column: u16,
}Expand description
All lines in SQL Editor and cursor location
Fields§
§lines: Vec<Line>§current_row: u16Current line in editor
cursor_column: u16Current column in editor
Implementations§
Source§impl Input
impl Input
pub fn combine_lines(&self) -> String
pub fn combine_visible_lines(&self) -> String
pub fn append_char(&mut self, c: char) -> Result<AppReturn>
Sourcepub fn previous_char(&mut self) -> Result<AppReturn>
pub fn previous_char(&mut self) -> Result<AppReturn>
Moves the cursor to the previous character.
pub fn backspace(&mut self) -> Result<AppReturn>
pub fn clear(&mut self) -> Result<AppReturn>
pub fn tab(&mut self) -> Result<AppReturn>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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