Skip to main content

ByteRange

Type Alias ByteRange 

Source
pub type ByteRange = Range<ByteOffset>;

Aliased Type§

pub struct ByteRange {
    pub start: ByteOffset,
    pub end: ByteOffset,
}

Fields§

§start: ByteOffset

The lower bound of the range (inclusive).

§end: ByteOffset

The upper bound of the range (exclusive).

Trait Implementations§

Source§

impl Erase for ByteRange

Source§

fn erase(&self) -> Range<usize>

Source§

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

Source§

impl<'a> From<RopeAdapter<'a, Range>> for ByteRange

Source§

fn from(value: RopeAdapter<'a, Range>) -> Self

Converts to this type from the input type.