Skip to main content

ByteRange

Type Alias ByteRange 

Source
pub type ByteRange = Range<ByteIndex>;
Expand description

A range of ByteIndex, i.e. a byte range into a str.

Aliased Type§

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

Fields§

§start: ByteIndex

The lower bound of the range (inclusive).

§end: ByteIndex

The upper bound of the range (exclusive).