pub struct DocPopupState {
pub for_index: usize,
pub body: Option<String>,
pub scroll: u32,
}Expand description
One side popup showing the focused candidate’s full
documentation. Lazy: not opened until <C-d> /
cmd:completion-toggle-docs flips it on.
Fields§
§for_index: usizeIndex into InsertCompletionState::rendered the popup
is showing for. Re-resolves when the selection changes.
body: Option<String>Resolved markdown body. Some(empty) means “we asked
the server but the item has no documentation”; None
means “we haven’t asked yet” (in which case the popup
renders a placeholder while the resolve fires).
scroll: u32Per-row scroll offset into body – <C-f> / <C-b>
page through long markdown bodies. Reset when
for_index changes.
Trait Implementations§
Source§impl Clone for DocPopupState
impl Clone for DocPopupState
Source§fn clone(&self) -> DocPopupState
fn clone(&self) -> DocPopupState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DocPopupState
impl RefUnwindSafe for DocPopupState
impl Send for DocPopupState
impl Sync for DocPopupState
impl Unpin for DocPopupState
impl UnsafeUnpin for DocPopupState
impl UnwindSafe for DocPopupState
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