Type Alias codespan::RawIndex

source ·
pub type RawIndex = u32;
Expand description

The raw, untyped index. We use a 32-bit integer here for space efficiency, assuming we won’t be working with sources larger than 4GB.

Trait Implementations§

source§

impl From<ByteIndex> for RawIndex

source§

fn from(index: ByteIndex) -> RawIndex

Converts to this type from the input type.
source§

impl From<ColumnIndex> for RawIndex

source§

fn from(index: ColumnIndex) -> RawIndex

Converts to this type from the input type.
source§

impl From<LineIndex> for RawIndex

source§

fn from(index: LineIndex) -> RawIndex

Converts to this type from the input type.