pub trait ToLspRange {
// Required methods
fn start_to_lsp_position(&self, code: &str) -> Position;
fn end_to_lsp_position(&self, code: &str) -> Position;
// Provided method
fn to_lsp_range(&self, code: &str) -> Range { ... }
}Required Methods§
fn start_to_lsp_position(&self, code: &str) -> Position
fn end_to_lsp_position(&self, code: &str) -> Position
Provided Methods§
fn to_lsp_range(&self, code: &str) -> Range
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".