Skip to main content

ByteSpan

Type Alias ByteSpan 

Source
pub type ByteSpan = Range<usize>;
Expand description

The start and end bytes of a particular portion of a source file

Aliased Type§

pub struct ByteSpan {
    pub start: usize,
    pub end: usize,
}

Fields§

§start: usize

The lower bound of the range (inclusive).

§end: usize

The upper bound of the range (exclusive).