[][src]Trait runestick::IntoByteIndex

pub trait IntoByteIndex {
    pub 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

pub 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

impl IntoByteIndex for ByteIndex[src]

Loading content...