pub type StaticJsonLdLoader = LazyLock<HashMap<IriBuf, JsonLdDocument>>;Expand description
Lazily initialized map of pre-loaded documents, suitable for a static.
It implements JsonLdLoader and AsyncJsonLdLoader, and &StaticJsonLdLoader
can be used wherever a loader is expected.
use json_ld::{AsyncJsonLdLoader, StaticJsonLdLoader};
use std::{collections::HashMap, sync::LazyLock};
static LOADER: StaticJsonLdLoader = LazyLock::new(HashMap::new);Aliased Typeยง
pub struct StaticJsonLdLoader { /* private fields */ }