Trait lsp_text::RopeExt[][src]

pub trait RopeExt {
    fn apply_edit(&mut self, edit: &TextEdit<'_>);
fn build_edit<'a>(
        &self,
        change: &'a TextDocumentContentChangeEvent
    ) -> Result<TextEdit<'a>>;
fn byte_to_lsp_position(&self, offset: usize) -> Position;
fn byte_to_tree_sitter_point(&self, offset: usize) -> Result<Point>;
fn chunk_walker(self, byte_idx: usize) -> ChunkWalker;
fn lsp_position_to_core(&self, position: Position) -> Result<TextPosition>;
fn lsp_position_to_utf16_cu(&self, position: Position) -> Result<u32>;
fn lsp_range_to_tree_sitter_range(&self, range: Range) -> Result<Range>;
fn tree_sitter_range_to_lsp_range(&self, range: Range) -> Range;
fn utf8_text_for_tree_sitter_node<'rope, 'tree>(
        &'rope self,
        node: &Node<'tree>
    ) -> Cow<'rope, str>; }

Required methods

fn apply_edit(&mut self, edit: &TextEdit<'_>)[src]

fn build_edit<'a>(
    &self,
    change: &'a TextDocumentContentChangeEvent
) -> Result<TextEdit<'a>>
[src]

fn byte_to_lsp_position(&self, offset: usize) -> Position[src]

fn byte_to_tree_sitter_point(&self, offset: usize) -> Result<Point>[src]

fn chunk_walker(self, byte_idx: usize) -> ChunkWalker[src]

fn lsp_position_to_core(&self, position: Position) -> Result<TextPosition>[src]

fn lsp_position_to_utf16_cu(&self, position: Position) -> Result<u32>[src]

fn lsp_range_to_tree_sitter_range(&self, range: Range) -> Result<Range>[src]

fn tree_sitter_range_to_lsp_range(&self, range: Range) -> Range[src]

fn utf8_text_for_tree_sitter_node<'rope, 'tree>(
    &'rope self,
    node: &Node<'tree>
) -> Cow<'rope, str>
[src]

Loading content...

Implementations on Foreign Types

impl RopeExt for Rope[src]

Loading content...

Implementors

Loading content...