Returns the precomputed Blake3 hash of this name.
(&self)
| 150 | |
| 151 | /// Returns the precomputed Blake3 hash of this name. |
| 152 | pub fn get_hash(&self) -> &Hash { |
| 153 | match self.0.as_ref() { |
| 154 | NameData::Anonymous(h) | NameData::Str(.., h) | NameData::Num(.., h) => h, |
| 155 | } |
| 156 | } |
| 157 | /// Constructs the anonymous (root) name. |
| 158 | pub fn anon() -> Self { |
| 159 | let hash = blake3::hash(&[NANON]); |
no test coverage detected