Struct indexed_file::index::Index [−][src]
pub struct Index { /* fields omitted */ }
Expand description
Contains an in-memory line-index
Implementations
Parse an encoded index usually stored in the first line of a file.
Build a new index for UTF8-text within reader
. Returns a Vec<u8>
holding the bytes representing
the index in encoded format. This is usually needed for building an indexed file.
Encodes an index into bytes, which can be used to store it into a file.
Returns the amount of items of the index. On a properly built index, this represents the amount of lines in the file without counting the index.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Index
impl UnwindSafe for Index
Blanket Implementations
Mutably borrows from an owned value. Read more