Expand description
This module provides a trait for module stores, and an implementation for in-memory caches.
§Example
use sdml_core::model::identifiers::Identifier;
use sdml_core::store::{InMemoryModuleCache, ModuleStore};
use std::str::FromStr;
let store = InMemoryModuleCache::with_stdlib();
let xml_schema_module = Identifier::from_str("xsd").unwrap();
assert!(store.contains(&xml_schema_module));Structs§
- InMemory
Module Cache - An implementation of
ModuleStorethat has no persistence it simply acts as an in-process cache.
Traits§
- Module
Store - A trait for any type that /stores/ modules and can retrieve them by name and by URI.