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
len
must be the number of elements that were serializedpos
must be the position ofout
within the archiveresolver
must be the result of serializing a B-tree set
Trait Implementations
impl<K, __C: ?Sized> CheckBytes<__C> for ArchivedBTreeSet<K> where
ArchivedBTreeMap<K, ()>: CheckBytes<__C>,
impl<K, __C: ?Sized> CheckBytes<__C> for ArchivedBTreeSet<K> where
ArchivedBTreeMap<K, ()>: CheckBytes<__C>,
type Error = TupleStructCheckError
type Error = TupleStructCheckError
The error that may result from checking the type.
unsafe fn check_bytes<'a>(
value: *const Self,
context: &mut __C
) -> Result<&'a Self, Self::Error>
unsafe fn check_bytes<'a>(
value: *const Self,
context: &mut __C
) -> Result<&'a Self, Self::Error>
Checks whether the given pointer points to a valid value within the given context. Read more
impl<K, D: ?Sized> Deserialize<BTreeSet<K>, D> for ArchivedBTreeSet<K::Archived> where
K: Archive + Ord,
K::Archived: Deserialize<K, D> + Ord,
D: Fallible,
impl<K, D: ?Sized> Deserialize<BTreeSet<K>, D> for ArchivedBTreeSet<K::Archived> where
K: Archive + Ord,
K::Archived: Deserialize<K, D> + Ord,
D: Fallible,
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
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
D: Fallible + ?Sized,
F: ?Sized,
W: DeserializeWith<F, T, D>,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
D: Fallible + ?Sized,
F: ?Sized,
W: DeserializeWith<F, T, D>,