Trait runestick::IntoByteIndex[][src]

pub trait IntoByteIndex {
    fn into_byte_index(self) -> ByteIndex;
}

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[src]

Convert into index. Panics if the type does not fit within the index.

Loading content...

Implementations on Foreign Types

impl IntoByteIndex for usize[src]

Loading content...

Implementors

Loading content...