sculptor 0.0.7

(Placeholder of) an app framework that uses configuration files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use sha2::{Digest, Sha512};

pub trait ShaSnap: AsRef<[u8]> {
    fn snap(&self) -> String {
        let mut hasher = Sha512::new();
        hasher.update(&self);
        let result = hasher.finalize();
        format!("{:x}", result)
    }
}

impl<T: AsRef<[u8]>> ShaSnap for T {}