Struct lsp::types::Range[][src]

pub struct Range {
    pub start: Position,
    pub end: Position,
}

A range in a text document expressed as (zero-based) start and end positions.

If you want to specify a range that contains a line including the line ending character(s) then use an end position denoting the start of the next line. For example:

{
    start: { line: 5, character: 23 }
    end : { line 6, character : 0 }
}

Fields

The range's start position

The range's end position.

Methods

impl Range
[src]

The Range namespace provides helper functions to work with Range literals.

Create a new Range liternal. @param start The range's start position. @param end The range's end position.

Create a new Range liternal. @param startLine The start line number. @param startCharacter The start character. @param endLine The end line number. @param endCharacter The end character.

Trait Implementations

impl Debug for Range
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Range

impl Sync for Range