Constructs the anonymous (root) name.
()
| 156 | } |
| 157 | /// Constructs the anonymous (root) name. |
| 158 | pub fn anon() -> Self { |
| 159 | let hash = blake3::hash(&[NANON]); |
| 160 | Name(Arc::new(NameData::Anonymous(hash))) |
| 161 | } |
| 162 | |
| 163 | /// Constructs a name by appending a string component to `pre`. |
| 164 | pub fn str(pre: Name, s: String) -> Self { |