Struct reedline::LineBuffer[][src]

pub struct LineBuffer { /* fields omitted */ }


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>, 

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

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.