pub struct PopupList {
pub items: Vec<CompletionItem>,
pub filtered: Vec<u32>,
pub selected: u32,
pub anchor: u32,
}Expand description
The live popup: the provider’s items plus the local filter/selection over
them. The widget renders items[filtered[i]] for the visible window and
highlights filtered[selected].
Fields§
§items: Vec<CompletionItem>The provider’s items, unfiltered (the reference set the filter indexes).
filtered: Vec<u32>Indices into items passing the local prefix filter, in sort_key
order. Rebuilt on every refilter.
selected: u32Index into filtered (not items); resets to 0 on every refilter.
anchor: u32Absolute byte offset of the completion-word start — the popup’s x anchor.
Auto Trait Implementations§
impl Freeze for PopupList
impl RefUnwindSafe for PopupList
impl Send for PopupList
impl Sync for PopupList
impl Unpin for PopupList
impl UnsafeUnpin for PopupList
impl UnwindSafe for PopupList
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