pub struct TryIndexSet<T, S = RandomState> { /* private fields */ }Expand description
A wrapper around [indexmap::IndexSet] that only provides fallible
allocation.
Implementations§
Source§impl<T> TryIndexSet<T>
impl<T> TryIndexSet<T>
Source§impl<T, S> TryIndexSet<T, S>
impl<T, S> TryIndexSet<T, S>
Sourcepub const fn with_hasher(hash_builder: S) -> Self
pub const fn with_hasher(hash_builder: S) -> Self
Same as [indexmap::IndexSet::with_hasher].
Trait Implementations§
Source§impl<T, S> Debug for TryIndexSet<T, S>where
T: Debug,
impl<T, S> Debug for TryIndexSet<T, S>where
T: Debug,
Source§impl<T, S> Default for TryIndexSet<T, S>where
S: Default,
impl<T, S> Default for TryIndexSet<T, S>where
S: Default,
Source§impl<'de, T> Deserialize<'de> for TryIndexSet<T>
impl<'de, T> Deserialize<'de> for TryIndexSet<T>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T, S> Eq for TryIndexSet<T, S>
Source§impl<T, S> From<IndexSet<T, S>> for TryIndexSet<T, S>
impl<T, S> From<IndexSet<T, S>> for TryIndexSet<T, S>
Source§impl<T, S> From<TryIndexSet<T, S>> for IndexSet<T, S>
impl<T, S> From<TryIndexSet<T, S>> for IndexSet<T, S>
Source§fn from(set: TryIndexSet<T, S>) -> Self
fn from(set: TryIndexSet<T, S>) -> Self
Converts to this type from the input type.
Source§impl<T, S> Index<usize> for TryIndexSet<T, S>
impl<T, S> Index<usize> for TryIndexSet<T, S>
Source§impl<'a, T, S> IntoIterator for &'a TryIndexSet<T, S>
impl<'a, T, S> IntoIterator for &'a TryIndexSet<T, S>
Source§impl<T, S> IntoIterator for TryIndexSet<T, S>
impl<T, S> IntoIterator for TryIndexSet<T, S>
Source§impl<T, S> PartialEq for TryIndexSet<T, S>
impl<T, S> PartialEq for TryIndexSet<T, S>
Source§impl<T, S> Serialize for TryIndexSet<T, S>where
T: Serialize,
impl<T, S> Serialize for TryIndexSet<T, S>where
T: Serialize,
Source§impl<T, S> TryClone for TryIndexSet<T, S>
impl<T, S> TryClone for TryIndexSet<T, S>
Source§fn try_clone(&self) -> Result<Self, OutOfMemory>
fn try_clone(&self) -> Result<Self, OutOfMemory>
Attempt to clone
self, returning an error if any allocation fails
during cloning.§fn clone_panic_on_oom(&self) -> Self
fn clone_panic_on_oom(&self) -> Self
Clone
self, panicking on allocation failure.Source§impl<T, E> TryFromIterator<Result<T, E>, E> for TryIndexSet<T>
impl<T, E> TryFromIterator<Result<T, E>, E> for TryIndexSet<T>
Source§impl<T> TryFromIterator<T, OutOfMemory> for TryIndexSet<T>
impl<T> TryFromIterator<T, OutOfMemory> for TryIndexSet<T>
Source§fn try_from_iter<I>(iter: I) -> Result<Self, OutOfMemory>where
I: Iterator<Item = T>,
fn try_from_iter<I>(iter: I) -> Result<Self, OutOfMemory>where
I: Iterator<Item = T>,
Creates an instance of this collection from the
iter provided. Read moreAuto Trait Implementations§
impl<T, S> Freeze for TryIndexSet<T, S>where
IndexSet<T, S>: Freeze,
impl<T, S> RefUnwindSafe for TryIndexSet<T, S>where
IndexSet<T, S>: RefUnwindSafe,
impl<T, S> Send for TryIndexSet<T, S>where
IndexSet<T, S>: Send,
impl<T, S> Sync for TryIndexSet<T, S>where
IndexSet<T, S>: Sync,
impl<T, S> Unpin for TryIndexSet<T, S>where
IndexSet<T, S>: Unpin,
impl<T, S> UnsafeUnpin for TryIndexSet<T, S>where
IndexSet<T, S>: UnsafeUnpin,
impl<T, S> UnwindSafe for TryIndexSet<T, S>where
IndexSet<T, S>: UnwindSafe,
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
Mutably borrows from an owned value. Read more
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> TryToOwned for Twhere
T: TryClone,
impl<T> TryToOwned for Twhere
T: TryClone,
§fn try_to_owned(&self) -> Result<<T as TryToOwned>::Owned, OutOfMemory>
fn try_to_owned(&self) -> Result<<T as TryToOwned>::Owned, OutOfMemory>
Try to allocate an owned version of
self.