Trait Process

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

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

Required Methods§

Source

async fn process_full<N, L, W>( &self, vocabulary: &mut N, active_context: &Context<N::Iri, N::BlankId>, loader: &L, base_url: Option<N::Iri>, options: Options, warnings: W, ) -> Result<Processed<'_, N::Iri, N::BlankId>, Error>
where N: VocabularyMut, N::Iri: Clone + Eq + Hash, N::BlankId: Clone + PartialEq, L: Loader, W: WarningHandler<N>,

Process the local context with specific options.

Provided Methods§

Source

async fn process_with<N, L>( &self, vocabulary: &mut N, active_context: &Context<N::Iri, N::BlankId>, loader: &L, base_url: Option<N::Iri>, options: Options, ) -> Result<Processed<'_, N::Iri, N::BlankId>, Error>
where N: VocabularyMut, N::Iri: Clone + Eq + Hash, N::BlankId: Clone + PartialEq, L: Loader,

Process the local context with specific options.

Source

async fn process<N, L>( &self, vocabulary: &mut N, loader: &L, base_url: Option<N::Iri>, ) -> Result<Processed<'_, N::Iri, N::BlankId>, Error>
where N: VocabularyMut, N::Iri: Clone + Eq + Hash, N::BlankId: Clone + PartialEq, L: Loader,

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", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Process for Context

Source§

async fn process_full<N, L, W>( &self, vocabulary: &mut N, active_context: &Context<N::Iri, N::BlankId>, loader: &L, base_url: Option<N::Iri>, options: Options, warnings: W, ) -> Result<Processed<'_, N::Iri, N::BlankId>, Error>
where N: VocabularyMut, N::Iri: Clone + Eq + Hash, N::BlankId: Clone + PartialEq, L: Loader, W: WarningHandler<N>,

Implementors§