Skip to main content

Process

Trait Process 

Source
pub trait Process {
    // Required method
    async fn process_full<N, L, W>(
        &self,
        vocabulary: &mut N,
        active_context: &Context<<N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>,
        loader: &L,
        base_url: Option<<N as IriVocabulary>::Iri>,
        options: Options,
        warnings: W,
    ) -> Result<Processed<'_, <N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, Error>
       where N: VocabularyMut,
             <N as IriVocabulary>::Iri: Clone + Eq + Hash,
             <N as BlankIdVocabulary>::BlankId: Clone + PartialEq,
             L: Loader,
             W: WarningHandler<N>;

    // Provided methods
    async fn process_with<N, L>(
        &self,
        vocabulary: &mut N,
        active_context: &Context<<N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>,
        loader: &L,
        base_url: Option<<N as IriVocabulary>::Iri>,
        options: Options,
    ) -> Result<Processed<'_, <N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, Error>
       where N: VocabularyMut,
             <N as IriVocabulary>::Iri: Clone + Eq + Hash,
             <N as BlankIdVocabulary>::BlankId: Clone + PartialEq,
             L: Loader { ... }
    async fn process<N, L>(
        &self,
        vocabulary: &mut N,
        loader: &L,
        base_url: Option<<N as IriVocabulary>::Iri>,
    ) -> Result<Processed<'_, <N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, Error>
       where N: VocabularyMut,
             <N as IriVocabulary>::Iri: Clone + Eq + Hash,
             <N as BlankIdVocabulary>::BlankId: Clone + PartialEq,
             L: Loader { ... }
}

Required Methods§

Source

async fn process_full<N, L, W>( &self, vocabulary: &mut N, active_context: &Context<<N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, loader: &L, base_url: Option<<N as IriVocabulary>::Iri>, options: Options, warnings: W, ) -> Result<Processed<'_, <N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, Error>

Process the local context with specific options.

Provided Methods§

Source

async fn process_with<N, L>( &self, vocabulary: &mut N, active_context: &Context<<N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, loader: &L, base_url: Option<<N as IriVocabulary>::Iri>, options: Options, ) -> Result<Processed<'_, <N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, Error>

Process the local context with specific options.

Source

async fn process<N, L>( &self, vocabulary: &mut N, loader: &L, base_url: Option<<N as IriVocabulary>::Iri>, ) -> Result<Processed<'_, <N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, Error>

Process the local context with the given initial active context with the default options: is_remote is false, override_protected is false and propagate is true.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§