tinymist_world::debug_loc

Type Alias LspRange

Source
pub type LspRange = Range;
Expand description

A resolved file range.

See LspPosition for the definition of the position inside a file.

Aliased Type§

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

Fields§

§start: Position

The range’s start position.

§end: Position

The range’s end position.

Implementations

§

impl Range

pub fn new(start: Position, end: Position) -> Range

Trait Implementations

§

impl Clone for Range

§

fn clone(&self) -> Range

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Range

§

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

Formats the value using the given formatter. Read more
§

impl Default for Range

§

fn default() -> Range

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

impl<'de> Deserialize<'de> for Range

§

fn deserialize<__D>( __deserializer: __D, ) -> Result<Range, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for Range

§

fn eq(&self, other: &Range) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Serialize for Range

§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for Range

§

impl Eq for Range

§

impl StructuralPartialEq for Range