Skip to main content

CheckpointManager

Struct CheckpointManager 

Source
pub struct CheckpointManager { /* private fields */ }

Implementations§

Source§

impl CheckpointManager

Source

pub fn new() -> Self

Source

pub fn update_doc(&mut self, uri: Uri, txt: String, version: Option<i32>)

Source

pub fn update_symbols(&mut self, sym: Symbols)

Source

pub fn shared_symbols(&self) -> Arc<Symbols>

Trait Implementations§

Source§

impl Checkpoint for CheckpointManager

Source§

fn get_doc(&self) -> Document

Get a copy of the most recently checkpointed document and version.
Source§

fn get_line(&self, row: usize) -> Option<String>

Get a row from the most recently checkpointed document.
Source§

fn get_folding_ranges(&self) -> Vec<FoldingRange>

Source§

fn get_symbols(&self) -> Vec<DocumentSymbol>

Source§

fn get_decs(&self, loc: &Location) -> Vec<Location>

Source§

fn get_defs(&self, loc: &Location) -> Vec<Location>

Source§

fn get_refs(&self, loc: &Location) -> Vec<Location>

Source§

fn get_renamables(&self, sel_loc: &Location) -> Vec<Location>

Source§

fn symbol_response( chkpts: HashMap<String, Arc<&Self>>, req: Request, resp: &mut Response, )

Source§

fn goto_dec_response( chkpts: HashMap<String, Arc<&Self>>, req: Request, resp: &mut Response, )

Source§

fn goto_def_response( chkpts: HashMap<String, Arc<&Self>>, req: Request, resp: &mut Response, )

Source§

fn goto_ref_response( chkpts: HashMap<String, Arc<&Self>>, req: Request, resp: &mut Response, )

Source§

fn rename_response( chkpts: HashMap<String, Arc<&Self>>, req: Request, resp: &mut Response, )

Source§

fn folding_range_response( chkpts: HashMap<String, Arc<&Self>>, req: Request, resp: &mut Response, )

Source§

fn hover_response<HOV: Hovers>( chkpts: HashMap<String, Arc<&Self>>, hov: &mut HOV, req: Request, resp: &mut Response, )

Source§

fn completion_response<CMP: Completions>( chkpts: HashMap<String, Arc<&Self>>, cmp: &mut CMP, req: Request, resp: &mut Response, )

Source§

fn sem_tok_response<TOK: Tokens>( chkpts: HashMap<String, Arc<&Self>>, tok: &mut TOK, req: Request, resp: &mut Response, )

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.