aboutsummaryrefslogtreecommitdiff
path: root/src/vector.rs
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-07-06 13:49:30 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2023-07-06 13:49:30 +0200
commit8799c886003d5eb0084589776ccafea809c451ff (patch)
treeef326b37d5300e272c2d591f6fbf3dee7f1c622c /src/vector.rs
parentd49ea4337418ad21015651a8e021f912b9a3bc7f (diff)
filevector rename to_hex -> to_string
Diffstat (limited to 'src/vector.rs')
-rw-r--r--src/vector.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vector.rs b/src/vector.rs
index ce1139d..366812f 100644
--- a/src/vector.rs
+++ b/src/vector.rs
@@ -23,7 +23,7 @@ impl FileVector {
Self { data : HashMap::new() }
}
- pub fn from_hex(hex : String) -> Self {
+ pub fn from_string(hex : String) -> Self {
let mut data : HashMap<u64, u64> = HashMap::new();
let data_chunks : Vec<&str> = hex.split(' ').collect();
@@ -39,7 +39,7 @@ impl FileVector {
Self { data }
}
- pub fn to_hex(&self) -> String {
+ pub fn to_string(&self) -> String {
let mut hex = String::new();
for (i, v) in self.data.iter() {