Trait json_ld_compaction::Compact

source ·
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,
    ) -> CompactDocumentResult
       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,
    ) -> CompactDocumentResult
       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,
    ) -> CompactDocumentResult
       where (): VocabularyMut<Iri = I, BlankId = B>,
             I: Clone + Hash + Eq,
             B: Clone + Hash + Eq,
             L: Loader<I> { ... }
}
Expand description

Compaction function.

Required Methods§

source

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, ) -> CompactDocumentResult
where N: VocabularyMut<Iri = I, BlankId = B>, I: Clone + Hash + Eq, B: Clone + Hash + Eq, L: Loader<I>,

Compacts the input document with full options.

Provided Methods§

source

async fn compact_with<'a, N, L>( &'a self, vocabulary: &'a mut N, context: ProcessedRef<'a, 'a, I, B>, loader: &'a mut L, ) -> CompactDocumentResult
where N: VocabularyMut<Iri = I, BlankId = B>, I: Clone + Hash + Eq, B: Clone + Hash + Eq, L: Loader<I>,

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

source

async fn compact<'a, L>( &'a self, context: ProcessedRef<'a, 'a, I, B>, loader: &'a mut L, ) -> CompactDocumentResult
where (): VocabularyMut<Iri = I, BlankId = B>, I: Clone + Hash + Eq, B: Clone + Hash + Eq, L: Loader<I>,

Compacts the input document.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<I, B> Compact<I, B> for ExpandedDocument<I, B>

source§

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, ) -> CompactDocumentResult
where N: VocabularyMut<Iri = I, BlankId = B>, I: Clone + Hash + Eq, B: Clone + Hash + Eq, L: Loader<I>,

source§

impl<I, B> Compact<I, B> for FlattenedDocument<I, B>

source§

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, ) -> CompactDocumentResult
where N: VocabularyMut<Iri = I, BlankId = B>, I: Clone + Hash + Eq, B: Clone + Hash + Eq, L: Loader<I>,

Implementors§