pub struct ExpandedDocument<T = IriBuf, B = BlankIdBuf> { /* private fields */ }Expand description
Result of the document expansion algorithm: a set of (indexed) objects.
Objects are kept in insertion order, and deduplicated through an index of discriminant buckets (shallow per-object keys) rather than by hashing each object in full.
Implementations§
Source§impl<T, B> ExpandedDocument<T, B>
impl<T, B> ExpandedDocument<T, B>
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Creates a new ExpandedDocument with room for capacity objects.
Worth reaching for whenever the object count is known up front: growing the set re-hashes every object already in it, and hashing an object walks its whole subtree.
Sourcepub fn objects(&self) -> &[IndexedObject<T, B>] ⓘ
pub fn objects(&self) -> &[IndexedObject<T, B>] ⓘ
Returns the top-level objects of the document, in insertion order.
Sourcepub fn into_objects(self) -> Vec<IndexedObject<T, B>> ⓘ
pub fn into_objects(self) -> Vec<IndexedObject<T, B>> ⓘ
Consumes the document, returning its top-level objects in insertion order.
Sourcepub fn iter(&self) -> Iter<'_, IndexedObject<T, B>> ⓘ
pub fn iter(&self) -> Iter<'_, IndexedObject<T, B>> ⓘ
Returns an iterator over the top-level objects of the document, in insertion order.
Sourcepub fn traverse(&self) -> Traverse<'_, T, B> ⓘ
pub fn traverse(&self) -> Traverse<'_, T, B> ⓘ
Returns an iterator that visits every fragment of the document: each top-level object and, recursively, everything it contains.
Sourcepub fn count(&self, f: impl FnMut(&FragmentRef<'_, T, B>) -> bool) -> usize
pub fn count(&self, f: impl FnMut(&FragmentRef<'_, T, B>) -> bool) -> usize
Counts the fragments of the document matching the given predicate.
Sourcepub fn identify_all_with<V: VocabularyMut<Iri = T, BlankId = B>, G: LocalGenerator>(
&mut self,
vocabulary: &mut V,
generator: &mut G,
) -> Result<(), GeneratedIdError>
pub fn identify_all_with<V: VocabularyMut<Iri = T, BlankId = B>, G: LocalGenerator>( &mut self, vocabulary: &mut V, generator: &mut G, ) -> Result<(), GeneratedIdError>
Gives an identifier (@id) to every node, using the given generator
to create fresh identifiers for anonymous nodes.
§Errors
Returns an error when the generator runs out of identifiers.
Sourcepub fn identify_all<G: LocalGenerator>(
&mut self,
generator: &mut G,
) -> Result<(), GeneratedIdError>
pub fn identify_all<G: LocalGenerator>( &mut self, generator: &mut G, ) -> Result<(), GeneratedIdError>
Gives an identifier (@id) to every node, using the given generator
to create fresh identifiers for anonymous nodes.
§Errors
Returns an error when the generator runs out of identifiers.
Sourcepub fn relabel_and_canonicalize_with<V: VocabularyMut<Iri = T, BlankId = B>, G: LocalGenerator>(
&mut self,
vocabulary: &mut V,
generator: &mut G,
) -> Result<(), GeneratedIdError>
pub fn relabel_and_canonicalize_with<V: VocabularyMut<Iri = T, BlankId = B>, G: LocalGenerator>( &mut self, vocabulary: &mut V, generator: &mut G, ) -> Result<(), GeneratedIdError>
Relabels every node identifier with a fresh one from the given generator and puts every literal into canonical form.
§Errors
Returns an error when the generator runs out of identifiers.
Sourcepub fn relabel_and_canonicalize<G: LocalGenerator>(
&mut self,
generator: &mut G,
) -> Result<(), GeneratedIdError>
pub fn relabel_and_canonicalize<G: LocalGenerator>( &mut self, generator: &mut G, ) -> Result<(), GeneratedIdError>
Relabels every node identifier with a fresh one from the given generator and puts every literal into canonical form.
§Errors
Returns an error when the generator runs out of identifiers.
Sourcepub fn relabel_with<V: VocabularyMut<Iri = T, BlankId = B>, G: LocalGenerator>(
&mut self,
vocabulary: &mut V,
generator: &mut G,
) -> Result<(), GeneratedIdError>
pub fn relabel_with<V: VocabularyMut<Iri = T, BlankId = B>, G: LocalGenerator>( &mut self, vocabulary: &mut V, generator: &mut G, ) -> Result<(), GeneratedIdError>
Relabels every node identifier with a fresh one from the given generator.
§Errors
Returns an error when the generator runs out of identifiers.
Sourcepub fn relabel<G: LocalGenerator>(
&mut self,
generator: &mut G,
) -> Result<(), GeneratedIdError>
pub fn relabel<G: LocalGenerator>( &mut self, generator: &mut G, ) -> Result<(), GeneratedIdError>
Relabels every node identifier with a fresh one from the given generator.
§Errors
Returns an error when the generator runs out of identifiers.
Sourcepub fn canonicalize_with(&mut self, buffer: &mut Buffer)
pub fn canonicalize_with(&mut self, buffer: &mut Buffer)
Puts every literal of the document into canonical form, using the
given buffer to render numbers.
Sourcepub fn canonicalize(&mut self)
pub fn canonicalize(&mut self)
Puts every literal of the document into canonical form.
Sourcepub fn map_ids<U, C>(
self,
map_iri: impl FnMut(T) -> U,
map_id: impl FnMut(Id<T, B>) -> Id<U, C>,
) -> ExpandedDocument<U, C>
pub fn map_ids<U, C>( self, map_iri: impl FnMut(T) -> U, map_id: impl FnMut(Id<T, B>) -> Id<U, C>, ) -> ExpandedDocument<U, C>
Rewrites every IRI and identifier of the document (recursively) with the given functions.
Sourcepub fn blank_ids(&self) -> HashSet<&B>
pub fn blank_ids(&self) -> HashSet<&B>
Returns the set of all blank identifiers in the given document.
Sourcepub fn main_node(&self) -> Option<&Node<T, B>>
pub fn main_node(&self) -> Option<&Node<T, B>>
Returns the main node object of the document, if any.
The main node is the unique top level (root) node object. If multiple
node objects are on the root, None is returned.
Sourcepub fn into_main_node(self) -> Option<Node<T, B>>
pub fn into_main_node(self) -> Option<Node<T, B>>
Consumes the document and returns its main node object, if any.
The main node is the unique top level (root) node object. If multiple
node objects are on the root, None is returned.
Source§impl<T: Hash + Eq, B: Hash + Eq> ExpandedDocument<T, B>
impl<T: Hash + Eq, B: Hash + Eq> ExpandedDocument<T, B>
Sourcepub fn insert(&mut self, object: IndexedObject<T, B>) -> bool
pub fn insert(&mut self, object: IndexedObject<T, B>) -> bool
Inserts an object, unless an equal one is already present.
Returns true if the object was added.
Sourcepub fn contains(&self, object: &IndexedObject<T, B>) -> bool
pub fn contains(&self, object: &IndexedObject<T, B>) -> bool
Checks whether an equal object is present.
Source§impl<T: Eq + Hash, B: Eq + Hash> ExpandedDocument<T, B>
impl<T: Eq + Hash, B: Eq + Hash> ExpandedDocument<T, B>
Sourcepub fn try_from_json_slice_in(
vocabulary: &mut impl VocabularyMut<Iri = T, BlankId = B>,
bytes: &[u8],
) -> Result<Self, ExpandedJsonTextError>
pub fn try_from_json_slice_in( vocabulary: &mut impl VocabularyMut<Iri = T, BlankId = B>, bytes: &[u8], ) -> Result<Self, ExpandedJsonTextError>
Reads a document already in expanded form from its JSON text, without
running the Expansion algorithm: the bytes are parsed with jstrict’s
non-recursive parser and read with TryFromJson. The parsed tree is
consumed by the reading, so no JSON tree outlives the call.
§Errors
ExpandedJsonTextError::Syntax when bytes is not JSON, and
ExpandedJsonTextError::Invalid for a JSON text that is not expanded
JSON-LD.
Source§impl<T, B> ExpandedDocument<T, B>
impl<T, B> ExpandedDocument<T, B>
Sourcepub fn into_serde_json_with<N>(self, vocabulary: &N) -> Valuewhere
N: Vocabulary<Iri = T, BlankId = B>,
Available on crate feature serde-json only.
pub fn into_serde_json_with<N>(self, vocabulary: &N) -> Valuewhere
N: Vocabulary<Iri = T, BlankId = B>,
serde-json only.Converts the expanded document into a serde_json::Value using the
given vocabulary.
Source§impl<T, B> ExpandedDocument<T, B>where
(): Vocabulary<Iri = T, BlankId = B>,
impl<T, B> ExpandedDocument<T, B>where
(): Vocabulary<Iri = T, BlankId = B>,
Sourcepub fn into_serde_json(self) -> Value
Available on crate feature serde-json only.
pub fn into_serde_json(self) -> Value
serde-json only.Converts the expanded document into a serde_json::Value using the
default no-vocabulary.
Source§impl<T, B> ExpandedDocument<T, B>
impl<T, B> ExpandedDocument<T, B>
Sourcepub fn into_sonic_rs_with<N>(self, vocabulary: &N) -> Valuewhere
N: Vocabulary<Iri = T, BlankId = B>,
Available on crate feature sonic-rs only.
pub fn into_sonic_rs_with<N>(self, vocabulary: &N) -> Valuewhere
N: Vocabulary<Iri = T, BlankId = B>,
sonic-rs only.Converts the expanded document into a sonic_rs::Value using the
given vocabulary.
Source§impl<T, B> ExpandedDocument<T, B>where
(): Vocabulary<Iri = T, BlankId = B>,
impl<T, B> ExpandedDocument<T, B>where
(): Vocabulary<Iri = T, BlankId = B>,
Sourcepub fn into_sonic_rs(self) -> Value
Available on crate feature sonic-rs only.
pub fn into_sonic_rs(self) -> Value
sonic-rs only.Converts the expanded document into a sonic_rs::Value using the
default no-vocabulary.
Source§impl<T: Clone + Eq + Hash, B: Clone + Eq + Hash> ExpandedDocument<T, B>
impl<T: Clone + Eq + Hash, B: Clone + Eq + Hash> ExpandedDocument<T, B>
Sourcepub fn generate_node_map_with<V: VocabularyMut<Iri = T, BlankId = B>, G: LocalGenerator>(
&self,
vocabulary: &mut V,
generator: G,
) -> Result<NodeMap<T, B>, NodeMapError<T, B>>
pub fn generate_node_map_with<V: VocabularyMut<Iri = T, BlankId = B>, G: LocalGenerator>( &self, vocabulary: &mut V, generator: G, ) -> Result<NodeMap<T, B>, NodeMapError<T, B>>
Builds the node map of this document using the given vocabulary and blank node generator.
§Errors
Returns an error when the generator runs out of identifiers, or when two nodes disagree on an @index.
Source§impl<I, B> ExpandedDocument<I, B>
impl<I, B> ExpandedDocument<I, B>
Sourcepub fn from_interpreted_quads_in<'a, V, T>(
vocabulary: &V,
interpretation: &T,
quads: impl IntoIterator<Item = Quad<&'a T::Resource, &'a T::Resource, &'a T::Resource, &'a T::Resource>>,
context: Context<'_, T>,
) -> Result<Self, SerializationError>where
V: Vocabulary<Iri = I, BlankId = B>,
T: ReverseTermInterpretation<Iri = I, BlankId = B, Literal = V::Literal> + ReverseInterpretation,
T::Resource: 'a + Ord + Hash,
I: Clone + Eq + Hash,
B: Clone + Eq + Hash,
pub fn from_interpreted_quads_in<'a, V, T>(
vocabulary: &V,
interpretation: &T,
quads: impl IntoIterator<Item = Quad<&'a T::Resource, &'a T::Resource, &'a T::Resource, &'a T::Resource>>,
context: Context<'_, T>,
) -> Result<Self, SerializationError>where
V: Vocabulary<Iri = I, BlankId = B>,
T: ReverseTermInterpretation<Iri = I, BlankId = B, Literal = V::Literal> + ReverseInterpretation,
T::Resource: 'a + Ord + Hash,
I: Clone + Eq + Hash,
B: Clone + Eq + Hash,
Builds a document from interpreted RDF quads, using the given vocabulary and interpretation.
§Errors
Returns an error when the dataset cannot be expressed as JSON-LD, for instance a literal whose datatype has no IRI in the vocabulary.
Sourcepub fn from_interpreted_quads<'a, V, T>(
vocabulary: &V,
interpretation: &T,
quads: impl IntoIterator<Item = Quad<&'a T::Resource, &'a T::Resource, &'a T::Resource, &'a T::Resource>>,
) -> Result<Self, SerializationError>where
V: Vocabulary<Iri = I, BlankId = B>,
T: ReverseTermInterpretation<Iri = I, BlankId = B, Literal = V::Literal> + ReverseInterpretation,
T::Resource: 'a + Ord + Hash,
I: Clone + Eq + Hash,
B: Clone + Eq + Hash,
pub fn from_interpreted_quads<'a, V, T>(
vocabulary: &V,
interpretation: &T,
quads: impl IntoIterator<Item = Quad<&'a T::Resource, &'a T::Resource, &'a T::Resource, &'a T::Resource>>,
) -> Result<Self, SerializationError>where
V: Vocabulary<Iri = I, BlankId = B>,
T: ReverseTermInterpretation<Iri = I, BlankId = B, Literal = V::Literal> + ReverseInterpretation,
T::Resource: 'a + Ord + Hash,
I: Clone + Eq + Hash,
B: Clone + Eq + Hash,
Builds a document from interpreted RDF quads.
§Errors
Returns an error when the dataset cannot be expressed as JSON-LD.
Trait Implementations§
Source§impl<I, B> Borrow<ExpandedDocument<I, B>> for Document<I, B>
impl<I, B> Borrow<ExpandedDocument<I, B>> for Document<I, B>
Source§fn borrow(&self) -> &ExpandedDocument<I, B>
fn borrow(&self) -> &ExpandedDocument<I, B>
Source§impl<T, B> Default for ExpandedDocument<T, B>
impl<T, B> Default for ExpandedDocument<T, B>
impl<T: Eq + Hash, B: Eq + Hash> Eq for ExpandedDocument<T, B>
Source§impl<T: Hash + Eq, B: Hash + Eq> Extend<Indexed<Object<T, B>>> for ExpandedDocument<T, B>
impl<T: Hash + Eq, B: Hash + Eq> Extend<Indexed<Object<T, B>>> for ExpandedDocument<T, B>
Source§fn extend<I: IntoIterator<Item = IndexedObject<T, B>>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = IndexedObject<T, B>>>(&mut self, iter: I)
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl<I: Clone + Eq + Hash, B: Clone + Eq + Hash> Flatten<I, B> for ExpandedDocument<I, B>
impl<I: Clone + Eq + Hash, B: Clone + Eq + Hash> Flatten<I, B> for ExpandedDocument<I, B>
Source§fn flatten_with<V, G: LocalGenerator>(
self,
vocabulary: &mut V,
generator: G,
ordered: bool,
) -> FlattenResult<I, B>where
V: Vocabulary<Iri = I, BlankId = B> + VocabularyMut,
fn flatten_with<V, G: LocalGenerator>(
self,
vocabulary: &mut V,
generator: G,
ordered: bool,
) -> FlattenResult<I, B>where
V: Vocabulary<Iri = I, BlankId = B> + VocabularyMut,
Source§fn flatten_unordered_with<V, G: LocalGenerator>(
self,
vocabulary: &mut V,
generator: G,
) -> FlattenUnorderedResult<I, B>where
V: Vocabulary<Iri = I, BlankId = B> + VocabularyMut,
fn flatten_unordered_with<V, G: LocalGenerator>(
self,
vocabulary: &mut V,
generator: G,
) -> FlattenUnorderedResult<I, B>where
V: Vocabulary<Iri = I, BlankId = B> + VocabularyMut,
Source§fn flatten<G: LocalGenerator>(
self,
generator: G,
ordered: bool,
) -> FlattenResult<I, B>
fn flatten<G: LocalGenerator>( self, generator: G, ordered: bool, ) -> FlattenResult<I, B>
ordered is set. Read moreSource§fn flatten_unordered<G: LocalGenerator>(
self,
generator: G,
) -> FlattenUnorderedResult<I, B>
fn flatten_unordered<G: LocalGenerator>( self, generator: G, ) -> FlattenUnorderedResult<I, B>
Source§impl<T: Hash + Eq, B: Hash + Eq> From<IndexSet<Indexed<Object<T, B>>, GxBuildHasher>> for ExpandedDocument<T, B>
impl<T: Hash + Eq, B: Hash + Eq> From<IndexSet<Indexed<Object<T, B>>, GxBuildHasher>> for ExpandedDocument<T, B>
Source§fn from(set: IndexSet<IndexedObject<T, B>>) -> Self
fn from(set: IndexSet<IndexedObject<T, B>>) -> Self
Source§impl<T: Hash + Eq, B: Hash + Eq> From<Vec<Indexed<Object<T, B>>>> for ExpandedDocument<T, B>
impl<T: Hash + Eq, B: Hash + Eq> From<Vec<Indexed<Object<T, B>>>> for ExpandedDocument<T, B>
Source§fn from(items: Vec<IndexedObject<T, B>>) -> Self
fn from(items: Vec<IndexedObject<T, B>>) -> Self
Source§impl<T: Hash + Eq, B: Hash + Eq> FromIterator<Indexed<Object<T, B>>> for ExpandedDocument<T, B>
impl<T: Hash + Eq, B: Hash + Eq> FromIterator<Indexed<Object<T, B>>> for ExpandedDocument<T, B>
Source§fn from_iter<I: IntoIterator<Item = IndexedObject<T, B>>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = IndexedObject<T, B>>>(iter: I) -> Self
Source§impl<T, B> IntoIterator for ExpandedDocument<T, B>
impl<T, B> IntoIterator for ExpandedDocument<T, B>
Source§impl<'a, T, B> IntoIterator for &'a ExpandedDocument<T, B>
impl<'a, T, B> IntoIterator for &'a ExpandedDocument<T, B>
Source§impl<T, B, N: Vocabulary<Iri = T, BlankId = B>> IntoJsonWithContext<N> for ExpandedDocument<T, B>
impl<T, B, N: Vocabulary<Iri = T, BlankId = B>> IntoJsonWithContext<N> for ExpandedDocument<T, B>
Source§fn into_json_with(self, vocabulary: &N) -> Value
fn into_json_with(self, vocabulary: &N) -> Value
Writes the document as expanded JSON-LD: an array of the document’s objects, in insertion order. Recurses once per nesting level on sufficient native stack.
Source§impl<T, B> LdQuads<T, B> for ExpandedDocument<T, B>
impl<T, B> LdQuads<T, B> for ExpandedDocument<T, B>
Source§impl<T, B, I: Interpretation> LinkedData<I> for ExpandedDocument<T, B>where
T: LinkedDataResource<I> + LinkedDataSubject<I>,
B: LinkedDataResource<I> + LinkedDataSubject<I>,
impl<T, B, I: Interpretation> LinkedData<I> for ExpandedDocument<T, B>where
T: LinkedDataResource<I> + LinkedDataSubject<I>,
B: LinkedDataResource<I> + LinkedDataSubject<I>,
Source§impl<T, B, I: Interpretation> LinkedDataGraph<I> for ExpandedDocument<T, B>where
T: LinkedDataResource<I> + LinkedDataSubject<I>,
B: LinkedDataResource<I> + LinkedDataSubject<I>,
impl<T, B, I: Interpretation> LinkedDataGraph<I> for ExpandedDocument<T, B>where
T: LinkedDataResource<I> + LinkedDataSubject<I>,
B: LinkedDataResource<I> + LinkedDataSubject<I>,
Source§fn visit_graph<S>(&self, visitor: S) -> Result<S::Ok, S::Error>where
S: GraphVisitor<I>,
fn visit_graph<S>(&self, visitor: S) -> Result<S::Ok, S::Error>where
S: GraphVisitor<I>,
Source§impl<T: Eq + Hash, B: Eq + Hash> PartialEq for ExpandedDocument<T, B>
impl<T: Eq + Hash, B: Eq + Hash> PartialEq for ExpandedDocument<T, B>
Source§impl<T, B, N: Vocabulary<Iri = T, BlankId = B>> PrecomputeSizeWithContext<N> for ExpandedDocument<T, B>
impl<T, B, N: Vocabulary<Iri = T, BlankId = B>> PrecomputeSizeWithContext<N> for ExpandedDocument<T, B>
Source§impl<T, B, N: Vocabulary<Iri = T, BlankId = B>> PrintWithContext<N> for ExpandedDocument<T, B>
impl<T, B, N: Vocabulary<Iri = T, BlankId = B>> PrintWithContext<N> for ExpandedDocument<T, B>
Source§impl<T, B, N: Vocabulary<Iri = T, BlankId = B>> PrintWithSizeAndContext<N> for ExpandedDocument<T, B>
impl<T, B, N: Vocabulary<Iri = T, BlankId = B>> PrintWithSizeAndContext<N> for ExpandedDocument<T, B>
Source§impl<T, B> RdfQuads<T, B> for ExpandedDocument<T, B>
impl<T, B> RdfQuads<T, B> for ExpandedDocument<T, B>
Source§fn rdf_quads_full<'a, V: Vocabulary<Iri = T, BlankId = B>, G: LocalGenerator>(
&'a self,
vocabulary: &'a mut V,
generator: &'a mut G,
rdf_direction: Option<RdfDirection>,
produce_generalized_rdf: bool,
) -> Quads<'a, V, G> ⓘ
fn rdf_quads_full<'a, V: Vocabulary<Iri = T, BlankId = B>, G: LocalGenerator>( &'a self, vocabulary: &'a mut V, generator: &'a mut G, rdf_direction: Option<RdfDirection>, produce_generalized_rdf: bool, ) -> Quads<'a, V, G> ⓘ
Source§fn rdf_quads_with<'a, V: Vocabulary<Iri = T, BlankId = B>, G: LocalGenerator>(
&'a self,
vocabulary: &'a mut V,
generator: &'a mut G,
rdf_direction: Option<RdfDirection>,
) -> Quads<'a, V, G> ⓘ
fn rdf_quads_with<'a, V: Vocabulary<Iri = T, BlankId = B>, G: LocalGenerator>( &'a self, vocabulary: &'a mut V, generator: &'a mut G, rdf_direction: Option<RdfDirection>, ) -> Quads<'a, V, G> ⓘ
Source§fn rdf_quads<'a, G: LocalGenerator>(
&'a self,
generator: &'a mut G,
rdf_direction: Option<RdfDirection>,
) -> Quads<'a, (), G> ⓘwhere
(): Vocabulary<Iri = T, BlankId = B>,
fn rdf_quads<'a, G: LocalGenerator>(
&'a self,
generator: &'a mut G,
rdf_direction: Option<RdfDirection>,
) -> Quads<'a, (), G> ⓘwhere
(): Vocabulary<Iri = T, BlankId = B>,
Source§impl<T: Eq + Hash, B: Eq + Hash> TryFromJson<T, B> for ExpandedDocument<T, B>
impl<T: Eq + Hash, B: Eq + Hash> TryFromJson<T, B> for ExpandedDocument<T, B>
Source§fn try_from_json_in(
vocabulary: &mut impl VocabularyMut<Iri = T, BlankId = B>,
value: Value,
) -> Result<Self, InvalidExpandedJson>
fn try_from_json_in( vocabulary: &mut impl VocabularyMut<Iri = T, BlankId = B>, value: Value, ) -> Result<Self, InvalidExpandedJson>
Auto Trait Implementations§
impl<T, B> Freeze for ExpandedDocument<T, B>
impl<T, B> RefUnwindSafe for ExpandedDocument<T, B>
impl<T, B> Send for ExpandedDocument<T, B>
impl<T, B> Sync for ExpandedDocument<T, B>
impl<T, B> Unpin for ExpandedDocument<T, B>
impl<T, B> UnsafeUnpin for ExpandedDocument<T, B>
impl<T, B> UnwindSafe for ExpandedDocument<T, B>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Unordered reference.impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
self is equivalent to key.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.