Module store

Module store 

Source
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§

InMemoryModuleCache
An implementation of ModuleStore that has no persistence it simply acts as an in-process cache.

Traits§

ModuleStore
A trait for any type that /stores/ modules and can retrieve them by name and by URI.