ps_hash/implementations/into/
vec.rs1use crate::Hash;
2
3impl From<Hash> for Vec<u8> {
4 fn from(value: Hash) -> Self {
5 value.to_string().into_bytes()
6 }
7}
8
9impl From<&Hash> for Vec<u8> {
10 fn from(value: &Hash) -> Self {
11 value.to_string().into_bytes()
12 }
13}