Trait json_ld_compaction::Compact
source · [−]pub trait Compact<I, B, M> {
fn compact_full<'a, N, C, L: Loader<I, M> + ContextLoader<I, M>>(
&'a self,
vocabulary: &'a mut N,
context: ProcessedRef<'a, 'a, I, B, C, M>,
loader: &'a mut L,
options: Options
) -> BoxFuture<'a, CompactDocumentResult<I, M, L>>
where
N: Send + Sync + VocabularyMut<Iri = I, BlankId = B>,
I: Clone + Hash + Eq + Send + Sync,
B: Clone + Hash + Eq + Send + Sync,
M: Clone + Send + Sync,
C: ProcessMeta<I, B, M>,
L: Send + Sync,
L::Context: Into<C>;
fn compact_with<'a, N, C, L: Loader<I, M> + ContextLoader<I, M>>(
&'a self,
vocabulary: &'a mut N,
context: ProcessedRef<'a, 'a, I, B, C, M>,
loader: &'a mut L
) -> BoxFuture<'a, CompactDocumentResult<I, M, L>>
where
N: Send + Sync + VocabularyMut<Iri = I, BlankId = B>,
I: Clone + Hash + Eq + Send + Sync,
B: Clone + Hash + Eq + Send + Sync,
M: Clone + Send + Sync,
C: ProcessMeta<I, B, M>,
L: Send + Sync,
L::Context: Into<C>,
{ ... }
fn compact<'a, C, L: Loader<I, M> + ContextLoader<I, M>>(
&'a self,
context: ProcessedRef<'a, 'a, I, B, C, M>,
loader: &'a mut L
) -> BoxFuture<'a, CompactDocumentResult<I, M, L>>
where
(): Send + Sync + VocabularyMut<Iri = I, BlankId = B>,
I: Clone + Hash + Eq + Send + Sync,
B: Clone + Hash + Eq + Send + Sync,
M: Clone + Send + Sync,
C: ProcessMeta<I, B, M>,
L: Send + Sync,
L::Context: Into<C>,
{ ... }
}Expand description
Compaction function.
Required Methods
sourcefn compact_full<'a, N, C, L: Loader<I, M> + ContextLoader<I, M>>(
&'a self,
vocabulary: &'a mut N,
context: ProcessedRef<'a, 'a, I, B, C, M>,
loader: &'a mut L,
options: Options
) -> BoxFuture<'a, CompactDocumentResult<I, M, L>>where
N: Send + Sync + VocabularyMut<Iri = I, BlankId = B>,
I: Clone + Hash + Eq + Send + Sync,
B: Clone + Hash + Eq + Send + Sync,
M: Clone + Send + Sync,
C: ProcessMeta<I, B, M>,
L: Send + Sync,
L::Context: Into<C>,
fn compact_full<'a, N, C, L: Loader<I, M> + ContextLoader<I, M>>(
&'a self,
vocabulary: &'a mut N,
context: ProcessedRef<'a, 'a, I, B, C, M>,
loader: &'a mut L,
options: Options
) -> BoxFuture<'a, CompactDocumentResult<I, M, L>>where
N: Send + Sync + VocabularyMut<Iri = I, BlankId = B>,
I: Clone + Hash + Eq + Send + Sync,
B: Clone + Hash + Eq + Send + Sync,
M: Clone + Send + Sync,
C: ProcessMeta<I, B, M>,
L: Send + Sync,
L::Context: Into<C>,
Compacts the input document with full options.
Provided Methods
sourcefn compact_with<'a, N, C, L: Loader<I, M> + ContextLoader<I, M>>(
&'a self,
vocabulary: &'a mut N,
context: ProcessedRef<'a, 'a, I, B, C, M>,
loader: &'a mut L
) -> BoxFuture<'a, CompactDocumentResult<I, M, L>>where
N: Send + Sync + VocabularyMut<Iri = I, BlankId = B>,
I: Clone + Hash + Eq + Send + Sync,
B: Clone + Hash + Eq + Send + Sync,
M: Clone + Send + Sync,
C: ProcessMeta<I, B, M>,
L: Send + Sync,
L::Context: Into<C>,
fn compact_with<'a, N, C, L: Loader<I, M> + ContextLoader<I, M>>(
&'a self,
vocabulary: &'a mut N,
context: ProcessedRef<'a, 'a, I, B, C, M>,
loader: &'a mut L
) -> BoxFuture<'a, CompactDocumentResult<I, M, L>>where
N: Send + Sync + VocabularyMut<Iri = I, BlankId = B>,
I: Clone + Hash + Eq + Send + Sync,
B: Clone + Hash + Eq + Send + Sync,
M: Clone + Send + Sync,
C: ProcessMeta<I, B, M>,
L: Send + Sync,
L::Context: Into<C>,
Compacts the input document with the given vocabulary to
interpret identifiers.
sourcefn compact<'a, C, L: Loader<I, M> + ContextLoader<I, M>>(
&'a self,
context: ProcessedRef<'a, 'a, I, B, C, M>,
loader: &'a mut L
) -> BoxFuture<'a, CompactDocumentResult<I, M, L>>where
(): Send + Sync + VocabularyMut<Iri = I, BlankId = B>,
I: Clone + Hash + Eq + Send + Sync,
B: Clone + Hash + Eq + Send + Sync,
M: Clone + Send + Sync,
C: ProcessMeta<I, B, M>,
L: Send + Sync,
L::Context: Into<C>,
fn compact<'a, C, L: Loader<I, M> + ContextLoader<I, M>>(
&'a self,
context: ProcessedRef<'a, 'a, I, B, C, M>,
loader: &'a mut L
) -> BoxFuture<'a, CompactDocumentResult<I, M, L>>where
(): Send + Sync + VocabularyMut<Iri = I, BlankId = B>,
I: Clone + Hash + Eq + Send + Sync,
B: Clone + Hash + Eq + Send + Sync,
M: Clone + Send + Sync,
C: ProcessMeta<I, B, M>,
L: Send + Sync,
L::Context: Into<C>,
Compacts the input document.