Trait runestick::IntoByteIndex [−][src]
pub trait IntoByteIndex { fn into_byte_index(self) -> ByteIndex; }
Expand description
Convert the given type into an index.
Panics
This trait will cause a panic during conversion if the type being converted
doesn’t fit within the ByteIndex type. However, ByteIndex is big enough (at
least 2**32
bytes) to fit reasonable source files.
Required methods
fn into_byte_index(self) -> ByteIndex
fn into_byte_index(self) -> ByteIndex
Convert into index. Panics if the type does not fit within the index.