Struct NoopLspBackend

Source
pub struct NoopLspBackend;
Expand description

Backend whose capabilities are all false and whose methods use trait defaults.

§Examples

use ailloli_ui_editor::{LspBackend, LspCapabilities, NoopLspBackend};
assert_eq!(NoopLspBackend.capabilities(), LspCapabilities::default());

Trait Implementations§

Source§

impl Debug for NoopLspBackend

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for NoopLspBackend

Source§

fn default() -> NoopLspBackend

Returns the “default value” for a type. Read more
Source§

impl LspBackend for NoopLspBackend

Advertises no optional LSP capabilities.

Source§

fn capabilities(&self) -> LspCapabilities

Source§

fn open_document(&mut self, _document: &Document) -> Result<(), LspError>

Notifies the backend that a document opened. Read more
Source§

fn change_document(&mut self, _document: &Document) -> Result<(), LspError>

Notifies the backend that document content or metadata changed. Read more
Source§

fn close_document(&mut self, _document: &Document) -> Result<(), LspError>

Notifies the backend that a document closed. Read more
Source§

fn cancel(&mut self, request_id: LspRequestId) -> Result<(), LspError>

Requests cancellation of an opaque request ID. Read more
Source§

fn document_symbols( &mut self, _document: &Document, ) -> Result<Vec<SemanticDocumentSymbol>, LspError>

Returns semantic symbols for a document. Read more
Source§

fn references( &mut self, _document: &Document, ) -> Result<Vec<SemanticReference>, LspError>

Returns semantic reference edges for a document. Read more
Source§

fn diagnostics( &mut self, _document: &Document, ) -> Result<Vec<LspDiagnostic>, LspError>

Returns version-tagged diagnostics for a document. Read more

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> Same for T

Source§

type Output = T

Should always be Self
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.
§

impl<T> ErasedDestructor for T
where T: 'static,