pub struct CompletionAcceptance {
pub replacement: String,
pub cursor: usize,
}Expand description
A candidate’s whole-buffer replacement and cursor position at acceptance.
Fields§
§replacement: StringBuffer contents to install when the user accepts the candidate.
cursor: usizeUTF-8 byte offset at which to place the prompt cursor in replacement.
Trait Implementations§
Source§impl Clone for CompletionAcceptance
impl Clone for CompletionAcceptance
Auto Trait Implementations§
impl Freeze for CompletionAcceptance
impl RefUnwindSafe for CompletionAcceptance
impl Send for CompletionAcceptance
impl Sync for CompletionAcceptance
impl Unpin for CompletionAcceptance
impl UnsafeUnpin for CompletionAcceptance
impl UnwindSafe for CompletionAcceptance
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