Skip to main content

RangeExt

Trait RangeExt 

Source
pub trait RangeExt {
    // Required methods
    fn at(
        start_line: u32,
        start_character: u32,
        end_line: u32,
        end_character: u32,
    ) -> Self;
    fn overlaps(&self, other: Range) -> bool;
}

Required Methods§

Source

fn at( start_line: u32, start_character: u32, end_line: u32, end_character: u32, ) -> Self

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RangeExt for Range

Source§

fn at( start_line: u32, start_character: u32, end_line: u32, end_character: u32, ) -> Self

Source§

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

Implementors§