pub trait Compact<I, B> {
// Required method
async fn compact_full<'a, N, L>(
&'a self,
vocabulary: &'a mut N,
context: ProcessedRef<'a, 'a, I, B>,
loader: &'a mut L,
options: Options
) -> Result<Value, Error<<L as Loader<I>>::Error>>
where N: VocabularyMut<Iri = I, BlankId = B>,
I: Clone + Hash + Eq,
B: Clone + Hash + Eq,
L: Loader<I>;
// Provided methods
async fn compact_with<'a, N, L>(
&'a self,
vocabulary: &'a mut N,
context: ProcessedRef<'a, 'a, I, B>,
loader: &'a mut L
) -> Result<Value, Error<<L as Loader<I>>::Error>>
where N: VocabularyMut<Iri = I, BlankId = B>,
I: Clone + Hash + Eq,
B: Clone + Hash + Eq,
L: Loader<I> { ... }
async fn compact<'a, L>(
&'a self,
context: ProcessedRef<'a, 'a, I, B>,
loader: &'a mut L
) -> Result<Value, Error<<L as Loader<I>>::Error>>
where (): VocabularyMut<Iri = I, BlankId = B>,
I: Clone + Hash + Eq,
B: Clone + Hash + Eq,
L: Loader<I> { ... }
}
Expand description
Compaction function.
Required Methods§
Provided Methods§
sourceasync fn compact_with<'a, N, L>(
&'a self,
vocabulary: &'a mut N,
context: ProcessedRef<'a, 'a, I, B>,
loader: &'a mut L
) -> Result<Value, Error<<L as Loader<I>>::Error>>
async fn compact_with<'a, N, L>( &'a self, vocabulary: &'a mut N, context: ProcessedRef<'a, 'a, I, B>, loader: &'a mut L ) -> Result<Value, Error<<L as Loader<I>>::Error>>
Compacts the input document with the given vocabulary
to
interpret identifiers.
Object Safety§
This trait is not object safe.