(
&self,
prefix: &[u8],
)
| 74 | } |
| 75 | |
| 76 | fn scan_prefix( |
| 77 | &self, |
| 78 | prefix: &[u8], |
| 79 | ) -> StorageResult<Box<dyn Iterator<Item = StorageResult<(Vec<u8>, Vec<u8>)>> + '_>> { |
| 80 | let iter = self.tree.scan_prefix(prefix).map(|result| { |
| 81 | result |
| 82 | .map(|(k, v)| (k.to_vec(), v.to_vec())) |
| 83 | .map_err(|e| StorageDriverError::BackendSpecific(e.to_string())) |
| 84 | }); |
| 85 | Ok(Box::new(iter)) |
| 86 | } |
| 87 | |
| 88 | fn batch_get(&self, keys: &[&[u8]]) -> StorageResult<Vec<Option<Vec<u8>>>> { |
| 89 | let mut results = Vec::with_capacity(keys.len()); |
nothing calls this directly
no outgoing calls
no test coverage detected