Trait json_ld_core::loader::Loader  
source · pub trait Loader<I, M> {
    type Output;
    type Error;
    fn load_with<'a>(
        &'a mut self,
        vocabulary: &'a impl Sync + IriVocabulary<Iri = I>,
        url: I
    ) -> BoxFuture<'a, LoadingResult<I, M, Self::Output, Self::Error>>
    where
        I: 'a;
    fn load<'a>(
        &'a mut self,
        url: I
    ) -> BoxFuture<'a, LoadingResult<I, M, Self::Output, Self::Error>>
    where
        I: 'a,
        (): IriVocabulary<Iri = I>,
    { ... }
}Expand description
JSON document loader.
Required Associated Types
Required Methods
sourcefn load_with<'a>(
    &'a mut self,
    vocabulary: &'a impl Sync + IriVocabulary<Iri = I>,
    url: I
) -> BoxFuture<'a, LoadingResult<I, M, Self::Output, Self::Error>>where
    I: 'a,
 
fn load_with<'a>(
    &'a mut self,
    vocabulary: &'a impl Sync + IriVocabulary<Iri = I>,
    url: I
) -> BoxFuture<'a, LoadingResult<I, M, Self::Output, Self::Error>>where
    I: 'a,
Loads the document behind the given IRI, inside the given vocabulary.
Provided Methods
sourcefn load<'a>(
    &'a mut self,
    url: I
) -> BoxFuture<'a, LoadingResult<I, M, Self::Output, Self::Error>>where
    I: 'a,
    (): IriVocabulary<Iri = I>,
 
fn load<'a>(
    &'a mut self,
    url: I
) -> BoxFuture<'a, LoadingResult<I, M, Self::Output, Self::Error>>where
    I: 'a,
    (): IriVocabulary<Iri = I>,
Loads the document behind the given IRI.