Struct printer::buffer::Buffer [−][src]
Fields
buffer: Vec<char>
buffer_pos: usize
Implementations
impl Buffer
[src]
impl Buffer
[src]pub fn new() -> Self
[src]
pub fn insert(&mut self, c: char)
[src]
pub fn insert_str(&mut self, s: &str)
[src]
pub fn set_buffer_pos(&mut self, pos: usize)
[src]
pub fn remove_current_char(&mut self) -> Option<char>
[src]
pub fn next_char(&self) -> Option<&char>
[src]
pub fn current_char(&self) -> Option<&char>
[src]
pub fn previous_char(&self) -> Option<&char>
[src]
pub fn move_forward(&mut self)
[src]
pub fn move_backward(&mut self)
[src]
pub fn clear(&mut self)
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn is_at_string_line_start(&self) -> bool
[src]
pub fn is_at_start(&self) -> bool
[src]
pub fn is_at_end(&self) -> bool
[src]
pub fn goto_start(&mut self)
[src]
pub fn goto_end(&mut self)
[src]
pub fn _push_str(&mut self, str: &str)
[src]
pub fn get(&self, idx: usize) -> Option<&char>
[src]
pub fn _last(&self) -> Option<&char>
[src]
pub fn iter(&self) -> impl Iterator<Item = &char>
[src]
pub fn take(&mut self) -> Vec<char>
[src]
Trait Implementations
impl FromIterator<char> for Buffer
[src]
impl FromIterator<char> for Buffer
[src]Auto Trait Implementations
impl RefUnwindSafe for Buffer
impl Send for Buffer
impl Sync for Buffer
impl Unpin for Buffer
impl UnwindSafe for Buffer
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more