pub struct CatalogIndex {
pub by_md5: HashMap<String, Vec<ContigLocation>>,
pub by_name_length: HashMap<(String, u64), Vec<ContigLocation>>,
}Expand description
Indexes for fast lookup
Fields§
§by_md5: HashMap<String, Vec<ContigLocation>>MD5 -> locations
by_name_length: HashMap<(String, u64), Vec<ContigLocation>>(name, length) -> locations
Implementations§
Source§impl CatalogIndex
impl CatalogIndex
Sourcepub fn find_by_md5(&self, md5: &str) -> &[ContigLocation]
pub fn find_by_md5(&self, md5: &str) -> &[ContigLocation]
Find all locations for a given MD5
Sourcepub fn find_by_name_length(&self, name: &str, length: u64) -> &[ContigLocation]
pub fn find_by_name_length(&self, name: &str, length: u64) -> &[ContigLocation]
Find all locations for a given name+length
Trait Implementations§
Source§impl Debug for CatalogIndex
impl Debug for CatalogIndex
Source§impl Default for CatalogIndex
impl Default for CatalogIndex
Source§fn default() -> CatalogIndex
fn default() -> CatalogIndex
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CatalogIndex
impl RefUnwindSafe for CatalogIndex
impl Send for CatalogIndex
impl Sync for CatalogIndex
impl Unpin for CatalogIndex
impl UnwindSafe for CatalogIndex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more