Returns the internal id for pseudo root node
()
| 217 | |
| 218 | /// Returns the internal id for pseudo root node |
| 219 | pub fn pseudo_root_id() -> InternalId { |
| 220 | // The last 258 IDs in the generate u32 internal IDs range are |
| 221 | // reserved for special cases, `u32::MAX` is for root node, |
| 222 | // `u32::MAX - 1` is for queries, and the range `[u32::MAX - |
| 223 | // 257, u32::MAX - 2]` |
| 224 | InternalId::from(u32::MAX - 257) |
| 225 | } |
| 226 | |
| 227 | #[cfg(test)] |
| 228 | mod tests { |
no outgoing calls
no test coverage detected