diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-07-06 14:20:14 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-07-06 14:20:14 +0200 |
| commit | 9b4aa4e9643b0a5b4a554e455eac269a2472b590 (patch) | |
| tree | cdab839b50a137db2a6df480a0f75f1f1385cb41 /src/vector.rs | |
| parent | 8c3c8efa428200c67c1a6fa731faee55adf19678 (diff) | |
add some documentation to structs
Diffstat (limited to 'src/vector.rs')
| -rw-r--r-- | src/vector.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vector.rs b/src/vector.rs index 56d1817..0779e07 100644 --- a/src/vector.rs +++ b/src/vector.rs @@ -1,6 +1,10 @@ use std::collections::HashMap; use std::ops::{Deref, DerefMut}; +/// Represents the content of a cached file. +/// It is stored as a HashMap, because we do not +/// have to store the zeros. With that we save a lot +/// of storage. pub struct FileVector { data : HashMap<u64, u64> } |