Create a new `ObjectMemoryMap`. The storage and compatibility `HashAlgorithm` instances are used to store the object IDs in the correct map.
(storage: HashAlgorithm, compat: HashAlgorithm)
| 65 | /// The storage and compatibility `HashAlgorithm` instances are used to store the object IDs in |
| 66 | /// the correct map. |
| 67 | fn new(storage: HashAlgorithm, compat: HashAlgorithm) -> Self { |
| 68 | Self { |
| 69 | to_compat: BTreeMap::new(), |
| 70 | to_storage: BTreeMap::new(), |
| 71 | compat, |
| 72 | storage, |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | fn len(&self) -> usize { |
| 77 | self.to_compat.len() |
nothing calls this directly
no test coverage detected