Trait json_ld_core::loader::ContextLoader
source · pub trait ContextLoader<I, M> {
type Context;
type ContextError;
fn load_context_with<'a>(
&'a mut self,
vocabulary: &'a impl Sync + IriVocabulary<Iri = I>,
url: I
) -> BoxFuture<'a, LoadingResult<I, M, Self::Context, Self::ContextError>>
where
I: 'a,
M: 'a;
fn load_context<'a>(
&'a mut self,
url: I
) -> BoxFuture<'a, LoadingResult<I, M, Self::Context, Self::ContextError>>
where
I: 'a,
M: 'a,
(): IriVocabulary<Iri = I>,
{ ... }
}