[][src]Trait json_ld::context::Local

pub trait Local<T: Id = IriBuf>: Sized + PartialEq + AsJson {
    fn process_with<'a, C: Send + Sync + ContextMut<T>, L: Send + Sync + Loader>(
        &'a self,
        active_context: &'a C,
        stack: ProcessingStack,
        loader: &'a mut L,
        base_url: Option<Iri>,
        options: ProcessingOptions
    ) -> BoxFuture<'a, Result<C, Error>>
    where
        C::LocalContext: Send + Sync + From<L::Output> + From<Self>,
        L::Output: Into<Self>,
        T: Send + Sync
; fn process<'a, C: Send + Sync + ContextMut<T>, L: Send + Sync + Loader>(
        &'a self,
        active_context: &'a C,
        loader: &'a mut L,
        base_url: Option<Iri>
    ) -> BoxFuture<'a, Result<C, Error>>
    where
        C::LocalContext: Send + Sync + From<L::Output> + From<Self>,
        L::Output: Into<Self>,
        T: Send + Sync
, { ... } }

Local context used for context expansion.

Local contexts can be seen as "abstract contexts" that can be processed to enrich an existing active context.

Required methods

fn process_with<'a, C: Send + Sync + ContextMut<T>, L: Send + Sync + Loader>(
    &'a self,
    active_context: &'a C,
    stack: ProcessingStack,
    loader: &'a mut L,
    base_url: Option<Iri>,
    options: ProcessingOptions
) -> BoxFuture<'a, Result<C, Error>> where
    C::LocalContext: Send + Sync + From<L::Output> + From<Self>,
    L::Output: Into<Self>,
    T: Send + Sync

Process the local context with specific options.

Loading content...

Provided methods

fn process<'a, C: Send + Sync + ContextMut<T>, L: Send + Sync + Loader>(
    &'a self,
    active_context: &'a C,
    loader: &'a mut L,
    base_url: Option<Iri>
) -> BoxFuture<'a, Result<C, Error>> where
    C::LocalContext: Send + Sync + From<L::Output> + From<Self>,
    L::Output: Into<Self>,
    T: Send + Sync

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

Loading content...

Implementations on Foreign Types

impl<T: Id> Local<T> for JsonValue[src]

fn process_with<'a, C: Send + Sync + ContextMut<T>, L: Send + Sync + Loader>(
    &'a self,
    active_context: &'a C,
    stack: ProcessingStack,
    loader: &'a mut L,
    base_url: Option<Iri>,
    options: ProcessingOptions
) -> BoxFuture<'a, Result<C, Error>> where
    C::LocalContext: Send + Sync + From<L::Output> + From<Self>,
    L::Output: Into<Self>,
    T: Send + Sync
[src]

Load a local context.

Loading content...

Implementors

Loading content...