ps_hash/methods/
as_str.rs

1use crate::Hash;
2
3impl Hash {
4    #[must_use]
5    pub const fn as_str(&self) -> &str {
6        unsafe {
7            // safe because Hash is guaranteed to be valid ASCII
8            std::str::from_utf8_unchecked(&self.inner)
9        }
10    }
11}