1 2 3 4 5 6 7 8 9 10 11
pub mod hex; pub mod base64; use crate::*; pub trait EncodingTrait { fn encode(&self, data : &[u8]) -> String; fn decode(&self, data : &str) -> Result<ByteVector>; }