Struct languageserver_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. A range is comparable to a selection in an editor. Therefore the end position is exclusive.

Fields

The range's start position.

The range's end position.

Methods

impl Range
[src]

Trait Implementations

impl Debug for Range
[src]

Formats the value using the given formatter. Read more

impl Eq for Range
[src]

impl PartialEq for Range
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Copy for Range
[src]

impl Clone for Range
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Range
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Range

impl Sync for Range