pub fn validate_hash_lists(&self) -> Result<(), String> {
        let len: usize = self.indexer.len();
        for index in 0..len {
            match self.lookup_table.get(index as u32) {
                Some(list_offset) => {
                    let data = byteutils::subslice(
                        self.data,
                        list_offset as usize..,
                        "hash list data during validation",
                    )?;
                    let _: HashList<'_> = HashList::new(data)?;
                }
                None => {}
            }
        }
        Ok(())
    }
/// Make sure the database is not corrupt.
///
/// If you got this far, the indexer and lookup table were
/// successfully initialized. This function checks whether
/// all hash lists can be properly read from disk.
Make sure the database is not corrupt.
If you got this far, the indexer and lookup table were
successfully initialized. This function checks whether
all hash lists can be properly read from disk.
Make sure the database is not corrupt . If you got this far the indexer and lookup table were successfully initialized . This function checks whether all hash lists can be properly read from disk .
pub fn validate_hash_lists(&self) -> Result<(), String> {
        let len: usize = self.indexer.len();
        for index in 0..len {
            match self.lookup_table.get(index as u32) {
                Some(list_offset) => {
                    let data = byteutils::subslice(
                        self.data,
                        list_offset as usize..,
                        "hash list data during validation",
                    )?;
                    let _: HashList<'_> = HashList::new(data)?;
                }
                None => {}
            }
        }
        Ok(())
    }
pub fn validate_hash_lists ( & self ) -> Result < ( ) , String > { let len : usize = self . indexer . len ( ) ; for index in 0 .. len { match self . lookup_table . get ( index as u32 ) { Some ( list_offset ) => { let data = byteutils :: subslice ( self . data , list_offset as usize .. , " " , ) ? ; let _ : HashList < ' _ > = HashList :: new ( data ) ? ; } None => { } } } Ok ( ( ) ) }
Make sure the database is not corrupt.
Make sure the database is not corrupt .
&self
&self