Check whether a value is valid and not an alias.
(&self, value: Value)
| 376 | |
| 377 | /// Check whether a value is valid and not an alias. |
| 378 | pub fn value_is_real(&self, value: Value) -> bool { |
| 379 | // Deleted or unused values are also stored as aliases so this excludes |
| 380 | // those as well. |
| 381 | self.value_is_valid(value) && !matches!(self.values[value].into(), ValueData::Alias { .. }) |
| 382 | } |
| 383 | |
| 384 | /// Is the given value an alias? |
| 385 | pub fn value_is_alias(&self, v: Value) -> bool { |
nothing calls this directly
no test coverage detected