#Convert Generic Array into String
1 messages · Page 1 of 1 (latest)
The generic for collect specifies the type which should be produced when collecting the iterator, assuming char was supposed to be the type of the items in the iterator...
Do you want the items to be output as text?
The result of a hash wouldn't necessarily be a valid string...?
? its a sha256sum
Idk how that works.
idk, it should be valid, im willing to try lol
What's return type of digest?
GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>
kinda cursed
I guess you could copy the items, and collect it into a Vec... then use String::from_utf8...
how should i got about getting it into a vec?
You can use collect for that.