Struct modalkit::editing::store::CompletionStore
source · pub struct CompletionStore {
pub lines: LineCompleter,
}
Expand description
Storage for text completion.
Fields§
§lines: LineCompleter
Global collection of word completion candidates.
Implementations§
source§impl CompletionStore
impl CompletionStore
sourcepub fn complete_line(&self, prefix: &str) -> Vec<String>
pub fn complete_line(&self, prefix: &str) -> Vec<String>
Complete the given line.
sourcepub fn complete_word(&self, prefix: &str) -> Vec<String>
pub fn complete_word(&self, prefix: &str) -> Vec<String>
Complete the given word.
Trait Implementations§
source§impl Default for CompletionStore
impl Default for CompletionStore
source§fn default() -> CompletionStore
fn default() -> CompletionStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CompletionStore
impl RefUnwindSafe for CompletionStore
impl Send for CompletionStore
impl Sync for CompletionStore
impl Unpin for CompletionStore
impl UnwindSafe for CompletionStore
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