HashType

Trait HashType 

Source
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;
}

Required Methods§

Source

fn as_string(&self) -> &'static str

Source

fn new_with_content(&self, f: &[u8]) -> Result<Box<dyn Hash>, HashError>

Source

fn len(&self) -> usize

Trait Implementations§

Source§

impl Debug for dyn HashType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§