From 8799c886003d5eb0084589776ccafea809c451ff Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Thu, 6 Jul 2023 13:49:30 +0200 Subject: filevector rename to_hex -> to_string --- src/vector.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vector.rs') 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 = 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() { -- cgit v1.2.3-70-g09d2