pub trait HashType {
// Required methods
fn as_string(&self) -> &'static str;
fn new_with_content(&self, f: &[u8]) -> Result<Box<dyn Hash>, HashError>;
fn len(&self) -> usize;
}pub trait HashType {
// Required methods
fn as_string(&self) -> &'static str;
fn new_with_content(&self, f: &[u8]) -> Result<Box<dyn Hash>, HashError>;
fn len(&self) -> usize;
}