Struct rkyv::collections::btree_set::ArchivedBTreeSet [−][src]
#[repr(transparent)]pub struct ArchivedBTreeSet<K>(_);Expand description
An archived BTreeSet. This is a wrapper around a B-tree map with the same key and a value of
().
Implementations
Returns true if the set contains a value for the specified key.
The key may be any borrowed form of the set’s key type, but the ordering on the borrowed form must match the ordering on the key type.
Returns a reference to the value int he set, if any, that is equal to the given value.
The value may be any borrowed form of the set’s value type, but the ordering on the borrowed form must match the ordering on the value type.
Gets an iterator over the keys of the set, in sorted order.
pub unsafe fn resolve_from_len(
len: usize,
pos: usize,
resolver: BTreeSetResolver,
out: *mut Self
)
pub unsafe fn resolve_from_len(
len: usize,
pos: usize,
resolver: BTreeSetResolver,
out: *mut Self
)
Resolves a B-tree set from its length.
Safety
lenmust be the number of elements that were serializedposmust be the position ofoutwithin the archiveresolvermust be the result of serializing a B-tree set
Trait Implementations
impl<K, D> Deserialize<BTreeSet<K>, D> for ArchivedBTreeSet<K::Archived> where
K: Archive + Ord,
K::Archived: Deserialize<K, D> + Ord,
D: Fallible + ?Sized,
impl<K, D> Deserialize<BTreeSet<K>, D> for ArchivedBTreeSet<K::Archived> where
K: Archive + Ord,
K::Archived: Deserialize<K, D> + Ord,
D: Fallible + ?Sized,
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl<K> RefUnwindSafe for ArchivedBTreeSet<K> where
K: RefUnwindSafe,
impl<K> Send for ArchivedBTreeSet<K> where
K: Send,
impl<K> Sync for ArchivedBTreeSet<K> where
K: Sync,
impl<K> !Unpin for ArchivedBTreeSet<K>
impl<K> UnwindSafe for ArchivedBTreeSet<K> where
K: UnwindSafe,
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more