fn term(&self, i: u64) -> Result<u64, StorageError> {
        let offset = self.ents[0].get_Index();
        if i < offset {
            return Err(StorageError::Compacted);
        }
        if (i - offset) as usize >= self.ents.len() {
            return Err(StorageError::Unavailable);
        }
        Ok(self.ents[(i - offset) as usize].get_Term())
    }
// term implements the Storage interface.
term implements the Storage interface.
term implements the Storage interface .
fn term(&self, i: u64) -> Result<u64, StorageError> {
        let offset = self.ents[0].get_Index();
        if i < offset {
            return Err(StorageError::Compacted);
        }
        if (i - offset) as usize >= self.ents.len() {
            return Err(StorageError::Unavailable);
        }
        Ok(self.ents[(i - offset) as usize].get_Term())
    }
fn term ( & self , i : u64 ) -> Result < u64 , StorageError > { let offset = self . ents [ 0 ] . get_Index ( ) ; if i < offset { return Err ( StorageError :: Compacted ) ; } if ( i - offset ) as usize >= self . ents . len ( ) { return Err ( StorageError :: Unavailable ) ; } Ok ( self . ents [ ( i - offset ) as usize ] . get_Term ( ) ) }
term implements the Storage interface.
term implements the Storage interface .
&self
i
u64