aboutsummaryrefslogtreecommitdiff
path: root/src/vector.rs
diff options
context:
space:
mode:
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() {