pub struct CompletionView {
pub candidates: Vec<Candidate>,
pub selected: Option<usize>,
}Expand description
Read-only snapshot of the completion menu state.
Fields§
§candidates: Vec<Candidate>Candidates currently displayed in menu order.
selected: Option<usize>Candidate currently previewed in the input buffer, if any.
Trait Implementations§
Source§impl Clone for CompletionView
impl Clone for CompletionView
Auto Trait Implementations§
impl Freeze for CompletionView
impl RefUnwindSafe for CompletionView
impl Send for CompletionView
impl Sync for CompletionView
impl Unpin for CompletionView
impl UnsafeUnpin for CompletionView
impl UnwindSafe for CompletionView
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