pub enum InlayHintOutcome {
Items {
buffer_id: BufferId,
document_version: u64,
hints: Vec<InlayHint>,
requested_first_line: u32,
requested_last_line: u32,
},
Empty {
buffer_id: BufferId,
document_version: u64,
requested_first_line: u32,
requested_last_line: u32,
},
}Expand description
4.4.g: in-flight inlayHint request outcome. The
requested_*_line pair rides through so the drain can seat
the cache with the range that actually produced these
hints (matters for the viewport pump – subsequent scrolls
reuse the cache only while the viewport sits inside that
range).
Variants§
Trait Implementations§
Source§impl Clone for InlayHintOutcome
impl Clone for InlayHintOutcome
Source§fn clone(&self) -> InlayHintOutcome
fn clone(&self) -> InlayHintOutcome
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 !RefUnwindSafe for InlayHintOutcome
impl Freeze for InlayHintOutcome
impl Send for InlayHintOutcome
impl Sync for InlayHintOutcome
impl Unpin for InlayHintOutcome
impl UnsafeUnpin for InlayHintOutcome
impl UnwindSafe for InlayHintOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more