pub trait Bounded {
    type Bound: Ord + Eq;

    // Required methods
    fn lo(&self) -> Self::Bound;
    fn hi(&self) -> Self::Bound;
    fn to(&self, other: Self) -> Self;
    fn overlaps(&self, other: Self) -> bool;
}

Required Associated Types§

Required Methods§

source

fn lo(&self) -> Self::Bound

source

fn hi(&self) -> Self::Bound

source

fn to(&self, other: Self) -> Self

source

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

Implementations on Foreign Types§

source§

impl Bounded for Span

§

type Bound = BytePos

source§

fn lo(&self) -> Self::Bound

source§

fn hi(&self) -> Self::Bound

source§

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

source§

fn to(&self, other: Self) -> Self

source§

impl Bounded for CharRange

§

type Bound = CharPos

source§

fn lo(&self) -> Self::Bound

source§

fn hi(&self) -> Self::Bound

source§

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

source§

fn to(&self, other: Self) -> Self

Implementors§