Skip to main content

Module registry

Module registry 

Source
Expand description

Generic registry map wrapper used by runtime registries.

use fcommon::Registry;

let mut registry = Registry::new();
registry.insert("alpha".to_string(), 1_u32);

assert_eq!(registry.get("alpha"), Some(&1));
assert!(registry.contains_key("alpha"));

Structsยง

Registry