Struct IterBuckets
pub struct IterBuckets<'a, T> { /* private fields */ }
An iterator producing the usize indices of all occupied buckets,
within the range 0..table.num_buckets().
The order in which the iterator yields indices is unspecified and may change in the future.
This struct is created by the HashTable::iter_buckets method. See its
documentation for more.
Trait Implementations
impl<T> Clone for IterBuckets<'_, T>
fn clone(&self) -> Self
impl<T> Debug for IterBuckets<'_, T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T> Default for IterBuckets<'_, T>
fn default() -> Self
impl<T> ExactSizeIterator for IterBuckets<'_, T>
fn len(&self) -> usize
impl<T> FusedIterator for IterBuckets<'_, T>
impl<T> Iterator for IterBuckets<'_, T>
type Item = usize;fn next(&mut self) -> Option<usize>fn size_hint(&self) -> (usize, Option<usize>)
Auto Trait Implementations
impl<'a, T> !Send for IterBuckets<'a, T>
impl<'a, T> !Sync for IterBuckets<'a, T>
impl<'a, T> Freeze for IterBuckets<'a, T>
where
PhantomData<&'a T>: Freeze,
impl<'a, T> RefUnwindSafe for IterBuckets<'a, T>
where
PhantomData<&'a T>: RefUnwindSafe,
impl<'a, T> Unpin for IterBuckets<'a, T>
where
PhantomData<&'a T>: Unpin,
impl<'a, T> UnsafeUnpin for IterBuckets<'a, T>
where
PhantomData<&'a T>: UnsafeUnpin,
impl<'a, T> UnwindSafe for IterBuckets<'a, T>
where
PhantomData<&'a T>: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for IterBuckets<'a, T>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for IterBuckets<'a, T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for IterBuckets<'a, T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for IterBuckets<'a, T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for IterBuckets<'a, T>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for IterBuckets<'a, T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for IterBuckets<'a, T>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for IterBuckets<'a, T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for IterBuckets<'a, T>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for IterBuckets<'a, T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>