pub struct Completion {
pub range: Range<usize>,
pub items: Vec<String>,
}Expand description
What a completer offers at the caret: the text it completes (a byte
range ending at the caret, such as the partial word) and the words that
would replace it, best first. See TextModel::set_completer.
Fields§
§range: Range<usize>The text the chosen word replaces (UTF-8 bytes, ending at the caret).
items: Vec<String>The words offered, in order.
Trait Implementations§
Source§impl Clone for Completion
impl Clone for Completion
Source§impl Debug for Completion
impl Debug for Completion
Source§impl Default for Completion
impl Default for Completion
Source§impl PartialEq for Completion
impl PartialEq for Completion
impl StructuralPartialEq for Completion
Auto Trait Implementations§
impl Forget for Completion
impl Freeze for Completion
impl Move for Completion
impl RefUnwindSafe for Completion
impl Send for Completion
impl Sync for Completion
impl Unpin for Completion
impl UnsafeUnpin for Completion
impl UnwindSafe for Completion
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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