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§
Sourcefn get_offset(&self, loc: Self::Item) -> Option<usize>
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.