Struct reedline::LineBuffer[][src]

pub struct LineBuffer { /* fields omitted */ }

Implementations

impl LineBuffer[src]

pub fn new() -> LineBuffer[src]

pub fn is_empty(&self) -> bool[src]

pub fn insertion_point(&self) -> InsertionPoint[src]

pub fn set_insertion_point(&mut self, pos: InsertionPoint)[src]

pub fn insertion_line(&self) -> &str[src]

pub fn set_buffer(&mut self, buffer: String)[src]

pub fn move_to_start(&mut self)[src]

pub fn move_to_end(&mut self)[src]

pub fn grapheme_right_index(&self) -> usize[src]

pub fn grapheme_left_index(&self) -> usize[src]

pub fn word_right_index(&self) -> usize[src]

pub fn word_left_index(&self) -> usize[src]

pub fn move_right(&mut self)[src]

pub fn move_left(&mut self)[src]

pub fn move_word_left(&mut self) -> usize[src]

pub fn move_word_right(&mut self) -> usize[src]

pub fn insert_char(&mut self, pos: InsertionPoint, c: char)[src]

pub fn insert_str(&mut self, idx: usize, string: &str)[src]

pub fn clear(&mut self)[src]

pub fn clear_to_end(&mut self)[src]

pub fn clear_to_insertion_point(&mut self)[src]

pub fn clear_range<R>(&mut self, range: R) where
    R: RangeBounds<usize>, 
[src]

pub fn replace_range<R>(&mut self, range: R, replace_with: &str) where
    R: RangeBounds<usize>, 
[src]

pub fn on_whitespace(&self) -> bool[src]

Trait Implementations

impl Default for LineBuffer[src]

Auto Trait Implementations

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.