Trait json_ld_core::flattening::Flatten

source ·
pub trait Flatten<I, B> {
    // Required methods
    fn flatten_with<V, G: Generator<V>>(
        self,
        vocabulary: &mut V,
        generator: G,
        ordered: bool
    ) -> FlattenResult<I, B>
       where V: Vocabulary<Iri = I, BlankId = B>;
    fn flatten_unordered_with<V, G: Generator<V>>(
        self,
        vocabulary: &mut V,
        generator: G
    ) -> FlattenUnorderedResult<I, B>
       where V: Vocabulary<Iri = I, BlankId = B>;

    // Provided methods
    fn flatten<G: Generator>(
        self,
        generator: G,
        ordered: bool
    ) -> FlattenResult<I, B>
       where (): Vocabulary<Iri = I, BlankId = B>,
             Self: Sized { ... }
    fn flatten_unordered<G: Generator>(
        self,
        generator: G
    ) -> FlattenUnorderedResult<I, B>
       where (): Vocabulary<Iri = I, BlankId = B>,
             Self: Sized { ... }
}

Required Methods§

source

fn flatten_with<V, G: Generator<V>>( self, vocabulary: &mut V, generator: G, ordered: bool ) -> FlattenResult<I, B>
where V: Vocabulary<Iri = I, BlankId = B>,

source

fn flatten_unordered_with<V, G: Generator<V>>( self, vocabulary: &mut V, generator: G ) -> FlattenUnorderedResult<I, B>
where V: Vocabulary<Iri = I, BlankId = B>,

Provided Methods§

source

fn flatten<G: Generator>( self, generator: G, ordered: bool ) -> FlattenResult<I, B>
where (): Vocabulary<Iri = I, BlankId = B>, Self: Sized,

source

fn flatten_unordered<G: Generator>( self, generator: G ) -> FlattenUnorderedResult<I, B>
where (): Vocabulary<Iri = I, BlankId = B>, Self: Sized,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<I: Clone + Eq + Hash, B: Clone + Eq + Hash> Flatten<I, B> for ExpandedDocument<I, B>