Static KNOWN_VALUES

Source
pub static KNOWN_VALUES: LazyKnownValues
Expand description

The global registry of Known Values.

This static instance provides access to all standard Known Values defined in the registry specification. It is lazily initialized on first access.

Most users should not need to interact with this directly, as the predefined Known Values are exposed as constants in the known_values module.

ยงExamples

use known_values::*;

// Access the global store
let binding = KNOWN_VALUES.get();
let known_values = binding.as_ref().unwrap();

// Look up a Known Value by name
let is_a = known_values.known_value_named("isA").unwrap();
assert_eq!(is_a.value(), 1);