Skip to main content

HashToString

Trait HashToString 

Source
pub trait HashToString {
    // Required methods
    fn hash_to_string(&self) -> String;
    fn as_hash(&self) -> u64;
}
Expand description

Use the hash of this object for various purposes, such as generating a unique filename

Required Methods§

Source

fn hash_to_string(&self) -> String

get a string of the hash of this object; useful for things like filenames

Source

fn as_hash(&self) -> u64

get the hash of this object

Implementors§

Source§

impl<T> HashToString for T
where T: Hash,