pub struct ReverseProperties<T, B, M>(_);
Expand description
Reverse properties of a node object, and their associated nodes.
Implementations
sourceimpl<T, B, M> ReverseProperties<T, B, M>
impl<T, B, M> ReverseProperties<T, B, M>
sourcepub fn iter(&self) -> Iter<'_, T, B, M>ⓘNotable traits for Iter<'a, T, B, M>impl<'a, T, B, M> Iterator for Iter<'a, T, B, M> type Item = (Meta<&'a Id<T, B>, &'a M>, &'a [Stripped<Meta<Indexed<Node<T, B, M>, M>, M>>]);
pub fn iter(&self) -> Iter<'_, T, B, M>ⓘNotable traits for Iter<'a, T, B, M>impl<'a, T, B, M> Iterator for Iter<'a, T, B, M> type Item = (Meta<&'a Id<T, B>, &'a M>, &'a [Stripped<Meta<Indexed<Node<T, B, M>, M>, M>>]);
Returns an iterator over the reverse properties and their associated nodes.
sourcepub fn iter_mut(&mut self) -> IterMut<'_, T, B, M>ⓘNotable traits for IterMut<'a, T, B, M>impl<'a, T, B, M> Iterator for IterMut<'a, T, B, M> type Item = (Meta<&'a Id<T, B>, &'a mut M>, &'a mut Multiset<Stripped<Meta<Indexed<Node<T, B, M>, M>, M>>, DeterministicHasherBuilder>);
pub fn iter_mut(&mut self) -> IterMut<'_, T, B, M>ⓘNotable traits for IterMut<'a, T, B, M>impl<'a, T, B, M> Iterator for IterMut<'a, T, B, M> type Item = (Meta<&'a Id<T, B>, &'a mut M>, &'a mut Multiset<Stripped<Meta<Indexed<Node<T, B, M>, M>, M>>, DeterministicHasherBuilder>);
Returns an iterator over the reverse properties with a mutable reference to their associated nodes.
sourceimpl<T, B, M> ReverseProperties<T, B, M>where
T: Eq + Hash,
B: Eq + Hash,
impl<T, B, M> ReverseProperties<T, B, M>where
T: Eq + Hash,
B: Eq + Hash,
sourcepub fn contains<Q>(&self, prop: Q) -> boolwhere
Q: IntoId<T, B>,
pub fn contains<Q>(&self, prop: Q) -> boolwhere
Q: IntoId<T, B>,
Checks if the given reverse property is associated to any node.
sourcepub fn get<'a, Q>(&self, prop: Q) -> Nodes<'_, T, B, M>ⓘNotable traits for Nodes<'a, T, B, M>impl<'a, T, B, M> Iterator for Nodes<'a, T, B, M> type Item = &'a Meta<Indexed<Node<T, B, M>, M>, M>;
where
Q: IntoId<T, B>,
T: 'a,
pub fn get<'a, Q>(&self, prop: Q) -> Nodes<'_, T, B, M>ⓘNotable traits for Nodes<'a, T, B, M>impl<'a, T, B, M> Iterator for Nodes<'a, T, B, M> type Item = &'a Meta<Indexed<Node<T, B, M>, M>, M>;
where
Q: IntoId<T, B>,
T: 'a,
Returns an iterator over all the nodes associated to the given reverse property.
sourcepub fn get_any<'a, Q>(
&self,
prop: Q
) -> Option<&Meta<Indexed<Node<T, B, M>, M>, M>>where
Q: IntoId<T, B>,
T: 'a,
pub fn get_any<'a, Q>(
&self,
prop: Q
) -> Option<&Meta<Indexed<Node<T, B, M>, M>, M>>where
Q: IntoId<T, B>,
T: 'a,
Get one of the nodes associated to the given reverse property.
If multiple nodes are found, there are no guaranties on which node will be returned.
sourcepub fn insert(
&mut self,
Meta<Id<T, B>, M>,
value: Meta<Indexed<Node<T, B, M>, M>, M>
)
pub fn insert(
&mut self,
Meta<Id<T, B>, M>,
value: Meta<Indexed<Node<T, B, M>, M>, M>
)
Associate the given node to the given reverse property.
sourcepub fn insert_unique(
&mut self,
Meta<Id<T, B>, M>,
value: Meta<Indexed<Node<T, B, M>, M>, M>
)
pub fn insert_unique(
&mut self,
Meta<Id<T, B>, M>,
value: Meta<Indexed<Node<T, B, M>, M>, M>
)
Associate the given node to the given reverse property, unless it is already.
sourcepub fn insert_all<Objects>(&mut self, Meta<Id<T, B>, M>, values: Objects)where
Objects: IntoIterator<Item = Meta<Indexed<Node<T, B, M>, M>, M>>,
pub fn insert_all<Objects>(&mut self, Meta<Id<T, B>, M>, values: Objects)where
Objects: IntoIterator<Item = Meta<Indexed<Node<T, B, M>, M>, M>>,
Associate all the given nodes to the given reverse property.
sourcepub fn insert_all_unique_stripped<Nodes>(
&mut self,
Meta<Id<T, B>, M>,
values: Nodes
)where
Nodes: IntoIterator<Item = Stripped<Meta<Indexed<Node<T, B, M>, M>, M>>>,
pub fn insert_all_unique_stripped<Nodes>(
&mut self,
Meta<Id<T, B>, M>,
values: Nodes
)where
Nodes: IntoIterator<Item = Stripped<Meta<Indexed<Node<T, B, M>, M>, M>>>,
Associate all the given nodes to the given reverse property, unless it is already.
sourcepub fn insert_all_unique<Nodes>(&mut self, prop: Meta<Id<T, B>, M>, values: Nodes)where
Nodes: IntoIterator<Item = Meta<Indexed<Node<T, B, M>, M>, M>>,
pub fn insert_all_unique<Nodes>(&mut self, prop: Meta<Id<T, B>, M>, values: Nodes)where
Nodes: IntoIterator<Item = Meta<Indexed<Node<T, B, M>, M>, M>>,
Associate all the given nodes to the given reverse property, unless it is already.
pub fn extend_unique<I, N>(&mut self, iter: I)where
I: IntoIterator<Item = (Meta<Id<T, B>, M>, N)>,
N: IntoIterator<Item = Meta<Indexed<Node<T, B, M>, M>, M>>,
pub fn extend_unique_stripped<I, N>(&mut self, iter: I)where
I: IntoIterator<Item = (Meta<Id<T, B>, M>, N)>,
N: IntoIterator<Item = Stripped<Meta<Indexed<Node<T, B, M>, M>, M>>>,
Trait Implementations
sourceimpl<T, B, M> Clone for ReverseProperties<T, B, M>where
T: Clone,
B: Clone,
M: Clone,
impl<T, B, M> Clone for ReverseProperties<T, B, M>where
T: Clone,
B: Clone,
M: Clone,
sourcefn clone(&self) -> ReverseProperties<T, B, M>
fn clone(&self) -> ReverseProperties<T, B, M>
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl<T, B, M> Extend<(Meta<Id<T, B>, M>, Vec<Meta<Indexed<Node<T, B, M>, M>, M>, Global>)> for ReverseProperties<T, B, M>where
T: Eq + Hash,
B: Eq + Hash,
impl<T, B, M> Extend<(Meta<Id<T, B>, M>, Vec<Meta<Indexed<Node<T, B, M>, M>, M>, Global>)> for ReverseProperties<T, B, M>where
T: Eq + Hash,
B: Eq + Hash,
sourcefn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = (Meta<Id<T, B>, M>, Vec<Meta<Indexed<Node<T, B, M>, M>, M>, Global>)>,
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = (Meta<Id<T, B>, M>, Vec<Meta<Indexed<Node<T, B, M>, M>, M>, Global>)>,
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)sourceimpl<'a, T, B, M> IntoIterator for &'a ReverseProperties<T, B, M>
impl<'a, T, B, M> IntoIterator for &'a ReverseProperties<T, B, M>
sourceimpl<'a, T, B, M> IntoIterator for &'a mut ReverseProperties<T, B, M>
impl<'a, T, B, M> IntoIterator for &'a mut ReverseProperties<T, B, M>
type Item = (Meta<&'a Id<T, B>, &'a mut M>, &'a mut Multiset<Stripped<Meta<Indexed<Node<T, B, M>, M>, M>>, DeterministicHasherBuilder>)
type Item = (Meta<&'a Id<T, B>, &'a mut M>, &'a mut Multiset<Stripped<Meta<Indexed<Node<T, B, M>, M>, M>>, DeterministicHasherBuilder>)
sourcefn into_iter(
self
) -> <&'a mut ReverseProperties<T, B, M> as IntoIterator>::IntoIter
fn into_iter(
self
) -> <&'a mut ReverseProperties<T, B, M> as IntoIterator>::IntoIter
sourceimpl<T, B, M> IntoIterator for ReverseProperties<T, B, M>
impl<T, B, M> IntoIterator for ReverseProperties<T, B, M>
type Item = (Meta<Id<T, B>, M>, Multiset<Stripped<Meta<Indexed<Node<T, B, M>, M>, M>>, DeterministicHasherBuilder>)
type Item = (Meta<Id<T, B>, M>, Multiset<Stripped<Meta<Indexed<Node<T, B, M>, M>, M>>, DeterministicHasherBuilder>)
sourcefn into_iter(self) -> <ReverseProperties<T, B, M> as IntoIterator>::IntoIter
fn into_iter(self) -> <ReverseProperties<T, B, M> as IntoIterator>::IntoIter
sourceimpl<T, B, M, N> IntoJsonWithContextMeta<M, N> for ReverseProperties<T, B, M>where
M: Clone,
N: Vocabulary<Iri = T, BlankId = B>,
impl<T, B, M, N> IntoJsonWithContextMeta<M, N> for ReverseProperties<T, B, M>where
M: Clone,
N: Vocabulary<Iri = T, BlankId = B>,
fn into_json_meta_with(self, meta: M, vocabulary: &N) -> Meta<Value<M>, M>
sourceimpl<T, B, M> MappedEq<ReverseProperties<T, B, M>> for ReverseProperties<T, B, M>where
T: Eq + Hash,
B: Eq + Hash,
impl<T, B, M> MappedEq<ReverseProperties<T, B, M>> for ReverseProperties<T, B, M>where
T: Eq + Hash,
B: Eq + Hash,
sourceimpl<T, B, M> PartialEq<ReverseProperties<T, B, M>> for ReverseProperties<T, B, M>where
T: Eq + Hash,
B: Eq + Hash,
M: PartialEq<M>,
impl<T, B, M> PartialEq<ReverseProperties<T, B, M>> for ReverseProperties<T, B, M>where
T: Eq + Hash,
B: Eq + Hash,
M: PartialEq<M>,
sourcefn eq(&self, other: &ReverseProperties<T, B, M>) -> bool
fn eq(&self, other: &ReverseProperties<T, B, M>) -> bool
sourceimpl<T, B, M, N> PrecomputeSizeWithContext<N> for ReverseProperties<T, B, M>where
N: Vocabulary<Iri = T, BlankId = B>,
impl<T, B, M, N> PrecomputeSizeWithContext<N> for ReverseProperties<T, B, M>where
N: Vocabulary<Iri = T, BlankId = B>,
sourceimpl<T, B, M, N> PrintWithSizeAndContext<N> for ReverseProperties<T, B, M>where
N: Vocabulary<Iri = T, BlankId = B>,
impl<T, B, M, N> PrintWithSizeAndContext<N> for ReverseProperties<T, B, M>where
N: Vocabulary<Iri = T, BlankId = B>,
sourceimpl<T, B, M> StrippedHash for ReverseProperties<T, B, M>where
T: Hash,
B: Hash,
impl<T, B, M> StrippedHash for ReverseProperties<T, B, M>where
T: Hash,
B: Hash,
fn stripped_hash<H>(&self, h: &mut H)where
H: Hasher,
sourceimpl<T, B, M> StrippedPartialEq<ReverseProperties<T, B, M>> for ReverseProperties<T, B, M>where
T: Eq + Hash,
B: Eq + Hash,
impl<T, B, M> StrippedPartialEq<ReverseProperties<T, B, M>> for ReverseProperties<T, B, M>where
T: Eq + Hash,
B: Eq + Hash,
fn stripped_eq(&self, other: &ReverseProperties<T, B, M>) -> bool
sourceimpl<T, B, M> TryFromJson<T, B, M> for ReverseProperties<T, B, M>where
T: Eq + Hash,
B: Eq + Hash,
impl<T, B, M> TryFromJson<T, B, M> for ReverseProperties<T, B, M>where
T: Eq + Hash,
B: Eq + Hash,
fn try_from_json_in(
vocabulary: &mut impl VocabularyMut<Iri = T, BlankId = B>,
Meta<Value<M>, M>
) -> Result<Meta<ReverseProperties<T, B, M>, M>, Meta<InvalidExpandedJson<M>, M>>
sourceimpl<T, B, M> TryFromJsonObject<T, B, M> for ReverseProperties<T, B, M>where
T: Eq + Hash,
B: Eq + Hash,
impl<T, B, M> TryFromJsonObject<T, B, M> for ReverseProperties<T, B, M>where
T: Eq + Hash,
B: Eq + Hash,
fn try_from_json_object_in(
vocabulary: &mut impl VocabularyMut<Iri = T, BlankId = B>,
Meta<Object<M>, M>
) -> Result<Meta<ReverseProperties<T, B, M>, M>, Meta<InvalidExpandedJson<M>, M>>
impl<T, B, M> Eq for ReverseProperties<T, B, M>where
T: Eq + Hash,
B: Eq + Hash,
M: Eq,
impl<T, B, M> StrippedEq for ReverseProperties<T, B, M>where
T: Eq + Hash,
B: Eq + Hash,
Auto Trait Implementations
impl<T, B, M> RefUnwindSafe for ReverseProperties<T, B, M>where
B: RefUnwindSafe,
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B, M> Send for ReverseProperties<T, B, M>where
B: Send,
M: Send,
T: Send,
impl<T, B, M> Sync for ReverseProperties<T, B, M>where
B: Sync,
M: Sync,
T: Sync,
impl<T, B, M> Unpin for ReverseProperties<T, B, M>where
B: Unpin,
M: Unpin,
T: Unpin,
impl<T, B, M> UnwindSafe for ReverseProperties<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
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
key
and return true
if they are equal.