pub struct LspFoldsCache {
pub document_version: u64,
pub folds: Vec<Fold>,
}Expand description
4.4.f: cached textDocument/foldingRange response for one
buffer. document_version is the buffer’s
[lattice_core::Document] version at the time the request
was issued; the pump compares it against the live version
to decide whether to refresh.
Fields§
§document_version: u64§folds: Vec<Fold>Trait Implementations§
Source§impl Clone for LspFoldsCache
impl Clone for LspFoldsCache
Source§fn clone(&self) -> LspFoldsCache
fn clone(&self) -> LspFoldsCache
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 LspFoldsCache
impl RefUnwindSafe for LspFoldsCache
impl Send for LspFoldsCache
impl Sync for LspFoldsCache
impl Unpin for LspFoldsCache
impl UnsafeUnpin for LspFoldsCache
impl UnwindSafe for LspFoldsCache
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