mirror of
https://github.com/mikedilger/chorus.git
synced 2026-05-03 06:51:42 +00:00
HashOutput::from_bytes()
This commit is contained in:
parent
af1d992ce7
commit
7b60e26714
@ -25,6 +25,10 @@ impl HashOutput {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn from_bytes(bytes: [u8; 32]) -> HashOutput {
|
||||||
|
HashOutput(bytes)
|
||||||
|
}
|
||||||
|
|
||||||
pub fn to_pathbuf<P: AsRef<Path>>(&self, base: P) -> PathBuf {
|
pub fn to_pathbuf<P: AsRef<Path>>(&self, base: P) -> PathBuf {
|
||||||
let s = hex::encode(self.0);
|
let s = hex::encode(self.0);
|
||||||
let mut output: PathBuf = PathBuf::new();
|
let mut output: PathBuf = PathBuf::new();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user