Trait Indexable

Source
pub trait Indexable {
    // Required method
    fn get_index(&self) -> &Index;

    // Provided methods
    fn total_lines(&self) -> usize { ... }
    fn get_index_byte_len(&self) -> usize { ... }
}

Required Methods§

Source

fn get_index(&self) -> &Index

Returns a reference to the files index.

Provided Methods§

Source

fn total_lines(&self) -> usize

Returns the total amount of lines in the file without the lines used by the index.

Source

fn get_index_byte_len(&self) -> usize

Implementors§