Trait vizia_core::vg::textlayout::RangeExtensions

pub trait RangeExtensions {
    // Required methods
    fn width(&self) -> usize;
    fn shift(&mut self, d: isize);
    fn contains(&self, other: &Self) -> bool;
    fn intersects(&self, other: &Self) -> bool;
    fn intersection(&self, other: &Self) -> Self;
    fn empty(&self) -> bool;
}

Required Methods§

fn width(&self) -> usize

fn shift(&mut self, d: isize)

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

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

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

fn empty(&self) -> bool

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl RangeExtensions for Range<usize>

§

fn width(&self) -> usize

§

fn shift(&mut self, d: isize)

§

fn contains(&self, other: &Range<usize>) -> bool

§

fn intersects(&self, other: &Range<usize>) -> bool

§

fn intersection(&self, other: &Range<usize>) -> Range<usize>

§

fn empty(&self) -> bool

Implementors§