pub struct Autocompletion<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Autocompletion<'a>
impl<'a> Autocompletion<'a>
pub fn new(buffer: &'a mut [u8]) -> Self
pub fn autocompleted(&self) -> Option<&str>
Sourcepub fn is_partial(&self) -> bool
pub fn is_partial(&self) -> bool
Whether autocompletion is partial and further input is required
Sourcepub fn mark_partial(&mut self)
pub fn mark_partial(&mut self)
Mark this autocompletion as partial
Sourcepub fn merge_autocompletion(&mut self, autocompletion: &str)
pub fn merge_autocompletion(&mut self, autocompletion: &str)
Merge this autocompletion with another one
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Autocompletion<'a>
impl<'a> RefUnwindSafe for Autocompletion<'a>
impl<'a> Send for Autocompletion<'a>
impl<'a> Sync for Autocompletion<'a>
impl<'a> Unpin for Autocompletion<'a>
impl<'a> !UnwindSafe for Autocompletion<'a>
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