pub trait Compact<I, B, M> {
    fn compact_full<'a, N, C, L>(
        &'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 + Loader<I, M> + ContextLoader<I, M>,
        L::Context: Into<C>
; fn compact_with<'a, N, C, L>(
        &'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 + Loader<I, M> + ContextLoader<I, M>,
        L::Context: Into<C>
, { ... } fn compact<'a, C, L>(
        &'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 + Loader<I, M> + ContextLoader<I, M>,
        L::Context: Into<C>
, { ... } }
Expand description

Compaction function.

Required Methods§

Compacts the input document with full options.

Provided Methods§

Compacts the input document with the given vocabulary to interpret identifiers.

Compacts the input document.

Implementations on Foreign Types§

Implementors§