Struct json_ld_core::ExpandedDocument
source · [−]Expand description
Result of the document expansion algorithm.
It is just an alias for a set of (indexed) objects.
Implementations
sourceimpl<T, B, M> ExpandedDocument<T, B, M>
impl<T, B, M> ExpandedDocument<T, B, M>
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn objects(&self) -> &HashSet<StrippedIndexedObject<T, B, M>>
pub fn into_objects(self) -> HashSet<StrippedIndexedObject<T, B, M>>
pub fn iter(&self) -> Iter<'_, StrippedIndexedObject<T, B, M>>
pub fn traverse(&self) -> Traverse<'_, T, B, M>ⓘNotable traits for Traverse<'a, T, B, M>impl<'a, T, B, M> Iterator for Traverse<'a, T, B, M> type Item = FragmentRef<'a, T, B, M>;
pub fn count(&self, f: impl FnMut(&FragmentRef<'_, T, B, M>) -> bool) -> usize
pub fn identify_all_with<N, G: Generator<T, B, M, N>>(
&mut self,
vocabulary: &mut N,
generator: &mut G
)where
M: Clone,
T: Eq + Hash,
B: Eq + Hash,
pub fn identify_all<G: Generator<T, B, M, ()>>(&mut self, generator: &mut G)where
M: Clone,
T: Eq + Hash,
B: Eq + Hash,
sourceimpl<T: Hash + Eq, B: Hash + Eq, M> ExpandedDocument<T, B, M>
impl<T: Hash + Eq, B: Hash + Eq, M> ExpandedDocument<T, B, M>
pub fn insert(&mut self, object: IndexedObject<T, B, M>) -> bool
Trait Implementations
sourceimpl<T, B, M> Default for ExpandedDocument<T, B, M>
impl<T, B, M> Default for ExpandedDocument<T, B, M>
sourceimpl<T: Hash + Eq, B: Hash + Eq, M> Extend<Meta<Indexed<Object<T, B, M>, M>, M>> for ExpandedDocument<T, B, M>
impl<T: Hash + Eq, B: Hash + Eq, M> Extend<Meta<Indexed<Object<T, B, M>, M>, M>> for ExpandedDocument<T, B, M>
sourcefn extend<I: IntoIterator<Item = IndexedObject<T, B, M>>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = IndexedObject<T, B, M>>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl<I: Clone + Eq + Hash, B: Clone + Eq + Hash, M: Clone> FlattenMeta<I, B, M> for ExpandedDocument<I, B, M>
impl<I: Clone + Eq + Hash, B: Clone + Eq + Hash, M: Clone> FlattenMeta<I, B, M> for ExpandedDocument<I, B, M>
fn flatten_meta<N, G: Generator<I, B, M, N>>(
self,
meta: M,
vocabulary: &mut N,
generator: G,
ordered: bool
) -> FlattenResult<I, B, M>where
N: Vocabulary<Iri = I, BlankId = B>,
fn flatten_unordered_meta<N, G: Generator<I, B, M, N>>(
self,
meta: M,
vocabulary: &mut N,
generator: G
) -> FlattenUnorderedResult<I, B, M>
sourceimpl<T, B, M> From<HashSet<Stripped<Meta<Indexed<Object<T, B, M>, M>, M>>, RandomState>> for ExpandedDocument<T, B, M>
impl<T, B, M> From<HashSet<Stripped<Meta<Indexed<Object<T, B, M>, M>, M>>, RandomState>> for ExpandedDocument<T, B, M>
sourcefn from(set: HashSet<StrippedIndexedObject<T, B, M>>) -> Self
fn from(set: HashSet<StrippedIndexedObject<T, B, M>>) -> Self
Converts to this type from the input type.
sourceimpl<T: Hash + Eq, B: Hash + Eq, M> FromIterator<Meta<Indexed<Object<T, B, M>, M>, M>> for ExpandedDocument<T, B, M>
impl<T: Hash + Eq, B: Hash + Eq, M> FromIterator<Meta<Indexed<Object<T, B, M>, M>, M>> for ExpandedDocument<T, B, M>
sourcefn from_iter<I: IntoIterator<Item = IndexedObject<T, B, M>>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = IndexedObject<T, B, M>>>(iter: I) -> Self
Creates a value from an iterator. Read more
sourceimpl<'a, T, B, M> IntoIterator for &'a ExpandedDocument<T, B, M>
impl<'a, T, B, M> IntoIterator for &'a ExpandedDocument<T, B, M>
sourceimpl<T, B, M> IntoIterator for ExpandedDocument<T, B, M>
impl<T, B, M> IntoIterator for ExpandedDocument<T, B, M>
sourceimpl<T, B, M> LdQuads<T, B, M> for ExpandedDocument<T, B, M>
impl<T, B, M> LdQuads<T, B, M> for ExpandedDocument<T, B, M>
sourceimpl<T: Eq + Hash, B: Eq + Hash, M> PartialEq<ExpandedDocument<T, B, M>> for ExpandedDocument<T, B, M>
impl<T: Eq + Hash, B: Eq + Hash, M> PartialEq<ExpandedDocument<T, B, M>> for ExpandedDocument<T, B, M>
sourceimpl<T, B, M, N: Vocabulary<Iri = T, BlankId = B>> PrecomputeSizeWithContext<N> for ExpandedDocument<T, B, M>
impl<T, B, M, N: Vocabulary<Iri = T, BlankId = B>> PrecomputeSizeWithContext<N> for ExpandedDocument<T, B, M>
sourceimpl<T, B, M, N: Vocabulary<Iri = T, BlankId = B>> PrintWithContext<N> for ExpandedDocument<T, B, M>
impl<T, B, M, N: Vocabulary<Iri = T, BlankId = B>> PrintWithContext<N> for ExpandedDocument<T, B, M>
sourceimpl<T, B, M, N: Vocabulary<Iri = T, BlankId = B>> PrintWithSizeAndContext<N> for ExpandedDocument<T, B, M>
impl<T, B, M, N: Vocabulary<Iri = T, BlankId = B>> PrintWithSizeAndContext<N> for ExpandedDocument<T, B, M>
sourceimpl<T, B, M> RdfQuads<T, B, M> for ExpandedDocument<T, B, M>
impl<T, B, M> RdfQuads<T, B, M> for ExpandedDocument<T, B, M>
fn rdf_quads_with<'n, 'g, N, G: Generator<T, B, M, N>>(
&self,
vocabulary: &'n mut N,
generator: &'g mut G,
rdf_direction: Option<RdfDirection>
) -> Quads<'_, 'n, 'g, T, B, N, M, G>ⓘNotable traits for Quads<'a, 'n, 'g, T, B, N, M, G>impl<'a, 'n, 'g, T: Clone, B: Clone, N: IriVocabularyMut<Iri = T>, M, G: Generator<T, B, M, N>> Iterator for Quads<'a, 'n, 'g, T, B, N, M, G> type Item = QuadRef<'a, T, B>;
fn rdf_quads<'g, G: Generator<T, B, M, ()>>(
&self,
generator: &'g mut G,
rdf_direction: Option<RdfDirection>
) -> Quads<'_, 'static, 'g, T, B, (), M, G>ⓘNotable traits for Quads<'a, 'n, 'g, T, B, N, M, G>impl<'a, 'n, 'g, T: Clone, B: Clone, N: IriVocabularyMut<Iri = T>, M, G: Generator<T, B, M, N>> Iterator for Quads<'a, 'n, 'g, T, B, N, M, G> type Item = QuadRef<'a, T, B>;
sourceimpl<T: Eq + Hash, B: Eq + Hash, M> StrippedPartialEq<ExpandedDocument<T, B, M>> for ExpandedDocument<T, B, M>
impl<T: Eq + Hash, B: Eq + Hash, M> StrippedPartialEq<ExpandedDocument<T, B, M>> for ExpandedDocument<T, B, M>
sourcefn stripped_eq(&self, other: &Self) -> bool
fn stripped_eq(&self, other: &Self) -> bool
Comparison between two expanded documents.
sourceimpl<T: Eq + Hash, B: Eq + Hash, M> TryFromJson<T, B, M> for ExpandedDocument<T, B, M>
impl<T: Eq + Hash, B: Eq + Hash, M> TryFromJson<T, B, M> for ExpandedDocument<T, B, M>
fn try_from_json_in(
vocabulary: &mut impl VocabularyMut<Iri = T, BlankId = B>,
Meta: Meta<Value<M>, M>
) -> Result<Meta<Self, M>, Meta<InvalidExpandedJson<M>, M>>
impl<T: Eq + Hash, B: Eq + Hash, M> Eq for ExpandedDocument<T, B, M>
impl<T: Eq + Hash, B: Eq + Hash, M> StrippedEq for ExpandedDocument<T, B, M>
Auto Trait Implementations
impl<T, B, M> RefUnwindSafe for ExpandedDocument<T, B, M>where
B: RefUnwindSafe,
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B, M> Send for ExpandedDocument<T, B, M>where
B: Send,
M: Send,
T: Send,
impl<T, B, M> Sync for ExpandedDocument<T, B, M>where
B: Sync,
M: Sync,
T: Sync,
impl<T, B, M> Unpin for ExpandedDocument<T, B, M>where
M: Unpin,
T: Unpin,
impl<T, B, M> UnwindSafe for ExpandedDocument<T, B, M>where
B: UnwindSafe,
M: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> BorrowStripped for T
impl<T> BorrowStripped for T
sourceimpl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.