Trait json_ld::context::Local [−][src]
pub trait Local<T: Id = IriBuf>: Sized + PartialEq {
fn process_full<'a, 's: 'a, C: Send + Sync + ContextMut<T>, L: Send + Sync + Loader>(
&'s self,
active_context: &'a C,
stack: ProcessingStack,
loader: &'a mut L,
base_url: Option<Iri<'a>>,
options: ProcessingOptions
) -> BoxFuture<'a, Result<Processed<&'s Self, C>, Error>>
where
C::LocalContext: Send + Sync + From<L::Output> + From<Self>,
L::Output: Into<Self>,
T: Send + Sync;
fn process_with<'a, 's: 'a, C: Send + Sync + ContextMut<T>, L: Send + Sync + Loader>(
&'s self,
active_context: &'a C,
loader: &'a mut L,
base_url: Option<Iri<'a>>,
options: ProcessingOptions
) -> BoxFuture<'a, Result<Processed<&'s Self, C>, Error>>
where
C::LocalContext: Send + Sync + From<L::Output> + From<Self>,
L::Output: Into<Self>,
T: Send + Sync,
{ ... }
fn process<'a, 's: 'a, C: Send + Sync + ContextMut<T> + Default, L: Send + Sync + Loader>(
&'s self,
loader: &'a mut L,
base_url: Option<Iri<'a>>
) -> BoxFuture<'a, Result<Processed<&'s Self, C>, Error>>
where
Self: Sync,
C::LocalContext: Send + Sync + From<L::Output> + From<Self>,
L::Output: Into<Self>,
T: Send + Sync,
{ ... }
}
Expand description
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_full<'a, 's: 'a, C: Send + Sync + ContextMut<T>, L: Send + Sync + Loader>(
&'s self,
active_context: &'a C,
stack: ProcessingStack,
loader: &'a mut L,
base_url: Option<Iri<'a>>,
options: ProcessingOptions
) -> BoxFuture<'a, Result<Processed<&'s Self, C>, Error>> where
C::LocalContext: Send + Sync + From<L::Output> + From<Self>,
L::Output: Into<Self>,
T: Send + Sync,
fn process_full<'a, 's: 'a, C: Send + Sync + ContextMut<T>, L: Send + Sync + Loader>(
&'s self,
active_context: &'a C,
stack: ProcessingStack,
loader: &'a mut L,
base_url: Option<Iri<'a>>,
options: ProcessingOptions
) -> BoxFuture<'a, Result<Processed<&'s Self, 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.
Provided methods
fn process_with<'a, 's: 'a, C: Send + Sync + ContextMut<T>, L: Send + Sync + Loader>(
&'s self,
active_context: &'a C,
loader: &'a mut L,
base_url: Option<Iri<'a>>,
options: ProcessingOptions
) -> BoxFuture<'a, Result<Processed<&'s Self, C>, Error>> where
C::LocalContext: Send + Sync + From<L::Output> + From<Self>,
L::Output: Into<Self>,
T: Send + Sync,
fn process_with<'a, 's: 'a, C: Send + Sync + ContextMut<T>, L: Send + Sync + Loader>(
&'s self,
active_context: &'a C,
loader: &'a mut L,
base_url: Option<Iri<'a>>,
options: ProcessingOptions
) -> BoxFuture<'a, Result<Processed<&'s Self, 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.
fn process<'a, 's: 'a, C: Send + Sync + ContextMut<T> + Default, L: Send + Sync + Loader>(
&'s self,
loader: &'a mut L,
base_url: Option<Iri<'a>>
) -> BoxFuture<'a, Result<Processed<&'s Self, C>, Error>> where
Self: Sync,
C::LocalContext: Send + Sync + From<L::Output> + From<Self>,
L::Output: Into<Self>,
T: Send + Sync,
fn process<'a, 's: 'a, C: Send + Sync + ContextMut<T> + Default, L: Send + Sync + Loader>(
&'s self,
loader: &'a mut L,
base_url: Option<Iri<'a>>
) -> BoxFuture<'a, Result<Processed<&'s Self, C>, Error>> where
Self: Sync,
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
.
Implementations on Foreign Types
fn process_full<'a, 's: 'a, C: Send + Sync + ContextMut<T>, L: Send + Sync + Loader>(
&'s self,
active_context: &'a C,
stack: ProcessingStack,
loader: &'a mut L,
base_url: Option<Iri<'a>>,
options: ProcessingOptions
) -> BoxFuture<'a, Result<Processed<&'s Self, C>, Error>> where
C::LocalContext: Send + Sync + From<L::Output> + From<Self>,
L::Output: Into<Self>,
T: Send + Sync,
fn process_full<'a, 's: 'a, C: Send + Sync + ContextMut<T>, L: Send + Sync + Loader>(
&'s self,
active_context: &'a C,
stack: ProcessingStack,
loader: &'a mut L,
base_url: Option<Iri<'a>>,
options: ProcessingOptions
) -> BoxFuture<'a, Result<Processed<&'s Self, C>, Error>> where
C::LocalContext: Send + Sync + From<L::Output> + From<Self>,
L::Output: Into<Self>,
T: Send + Sync,
Load a local context.