pub struct ArchivedBTreeSet<K, const E: usize = 5>(/* private fields */);Expand description
An archived BTreeSet. This is a wrapper around a B-tree map with the same
key and a value of ().
Implementations§
Source§impl<K, const E: usize> ArchivedBTreeSet<K, E>
impl<K, const E: usize> ArchivedBTreeSet<K, E>
Source§impl<K, const E: usize> ArchivedBTreeSet<K, E>
impl<K, const E: usize> ArchivedBTreeSet<K, E>
Sourcepub fn contains_key<Q: Ord + ?Sized>(&self, key: &Q) -> bool
pub fn contains_key<Q: Ord + ?Sized>(&self, key: &Q) -> bool
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.
Sourcepub fn get<Q: Ord + ?Sized>(&self, value: &Q) -> Option<&K>
pub fn get<Q: Ord + ?Sized>(&self, value: &Q) -> Option<&K>
Returns a reference to the value in the 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.
Sourcepub fn resolve_from_len(
len: usize,
resolver: BTreeSetResolver,
out: Place<Self>,
)
pub fn resolve_from_len( len: usize, resolver: BTreeSetResolver, out: Place<Self>, )
Resolves a B-tree set from its length.
Sourcepub fn serialize_from_ordered_iter<I, KU, S>(
iter: I,
serializer: &mut S,
) -> Result<BTreeSetResolver, S::Error>
pub fn serialize_from_ordered_iter<I, KU, S>( iter: I, serializer: &mut S, ) -> Result<BTreeSetResolver, S::Error>
Serializes an ArchivedBTreeSet from the given iterator and serializer.
Trait Implementations§
Source§impl<K, const E: usize, __C: Fallible + ?Sized> CheckBytes<__C> for ArchivedBTreeSet<K, E>
impl<K, const E: usize, __C: Fallible + ?Sized> CheckBytes<__C> for ArchivedBTreeSet<K, E>
Source§impl<K, D> Deserialize<BTreeSet<K>, D> for ArchivedBTreeSet<K::Archived>
impl<K, D> Deserialize<BTreeSet<K>, D> for ArchivedBTreeSet<K::Archived>
impl<K, const E: usize> Portable for ArchivedBTreeSet<K, E>
Auto Trait Implementations§
impl<K, const E: usize> Freeze for ArchivedBTreeSet<K, E>
impl<K, const E: usize> RefUnwindSafe for ArchivedBTreeSet<K, E>where
K: RefUnwindSafe,
impl<K, const E: usize> Send for ArchivedBTreeSet<K, E>where
K: Send,
impl<K, const E: usize> Sync for ArchivedBTreeSet<K, E>where
K: Sync,
impl<K, const E: usize = 5> !Unpin for ArchivedBTreeSet<K, E>
impl<K, const E: usize = 5> !UnsafeUnpin for ArchivedBTreeSet<K, E>
impl<K, const E: usize> UnwindSafe for ArchivedBTreeSet<K, E>where
K: UnwindSafe,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Mutably borrows from an owned value. Read more
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.