Skip to main content

Ranged

Trait Ranged 

Source
pub trait Ranged {
    // Required method
    fn range(&self) -> TextRange;

    // Provided methods
    fn start(&self) -> TextSize { ... }
    fn end(&self) -> TextSize { ... }
}
Expand description

A ranged item in the source text.

Required Methods§

Source

fn range(&self) -> TextRange

The range of this item in the source text.

Provided Methods§

Source

fn start(&self) -> TextSize

The start offset of this item in the source text.

Source

fn end(&self) -> TextSize

The end offset of this item in the source text.

Implementations on Foreign Types§

Source§

impl<T> Ranged for &T
where T: Ranged,

Source§

impl<T> Ranged for Arc<T>
where T: Ranged,

Implementors§