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/dictionary.rs | |
| parent | 8c3c8efa428200c67c1a6fa731faee55adf19678 (diff) | |
add some documentation to structs
Diffstat (limited to 'src/dictionary.rs')
| -rw-r--r-- | src/dictionary.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dictionary.rs b/src/dictionary.rs index e0a561a..94f377d 100644 --- a/src/dictionary.rs +++ b/src/dictionary.rs @@ -1,6 +1,10 @@ use std::collections::HashMap; use crate::vector::FileVector; +/// The dictionary is used to cache to words ids. +/// It also provides a function to convert it to +/// a vector and generate a FileVector from a word list +/// with the current directory. pub struct Dictionary { last_index : usize, data : HashMap<String, u64>, |