Searchable

Trait Searchable 

Source
pub trait Searchable {
    type Item: Copy + Debug;

    // Required methods
    fn get_offset(&self, loc: Self::Item) -> Option<usize>;
    fn at_offset(&self, offset: usize) -> Self::Item;
}

Required Associated Types§

Required Methods§

Source

fn get_offset(&self, loc: Self::Item) -> Option<usize>

Checks if the entry contains the specified item. If it does, returns the offset into the item.

Source

fn at_offset(&self, offset: usize) -> Self::Item

Implementors§