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
) -> Pin<Box<dyn Future<Output = Result<RemoteDocument<I, M, Self::Context>, Self::ContextError>> + Send + 'a, Global>>
where
I: 'a,
M: 'a;
fn load_context<'a>(
&'a mut self,
url: I
) -> Pin<Box<dyn Future<Output = Result<RemoteDocument<I, M, Self::Context>, Self::ContextError>> + Send + 'a, Global>>
where
I: 'a,
M: 'a,
(): IriVocabulary<Iri = I>,
{ ... }
}
Output of the loader, a context.