pub struct Buffer { /* private fields */ }Implementations§
Source§impl Buffer
impl Buffer
pub fn insert_colored_string(&mut self, data: &ColoredString)
pub fn insert_str(&mut self, data: &str)
pub fn insert_colored_chars(&mut self, data: &ColoredStr<'_>)
pub fn insert_char(&mut self, chr: char)
pub fn insert_bytes(&mut self, bytes: &[u8])
pub fn set_line(&mut self, line: &ColoredStr<'_>)
pub fn remove_next_char(&mut self)
pub fn remove_before_cursor(&mut self, n: usize)
pub fn remove_after_cursor(&mut self, n: usize)
pub fn remove_char(&mut self)
pub fn clear(&mut self)
pub fn change_cursor_x(&mut self, n: isize) -> bool
pub fn get_buffer(&self) -> ColoredStr<'_>
pub fn get_cursor_pos(&self) -> usize
pub fn get_changed(&mut self) -> bool
pub fn get_prev_buf_size(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Buffer
impl RefUnwindSafe for Buffer
impl Send for Buffer
impl Sync for Buffer
impl Unpin for Buffer
impl UnwindSafe for Buffer
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