Struct std::collections::hash_map::raw_table::Bucket [] [src]

pub struct Bucket<K, V, M> {
    raw: RawBucket<K, V>,
    idx: usize,
    table: M,
}

Fields

raw
idx
table

Methods

impl<K, V, M> Bucket<K, V, M>

fn into_table(self) -> M

Move out the reference to the table.

fn index(&self) -> usize

Get the raw index.

impl<K, V, M: Deref<Target=RawTable<K, V>>> Bucket<K, V, M>

fn new(table: M, hash: SafeHash) -> Bucket<K, V, M>

fn at_index(table: M, ib_index: usize) -> Bucket<K, V, M>

fn first(table: M) -> Bucket<K, V, M>

fn peek(self) -> BucketState<K, V, M>

Reads a bucket at a given index, returning an enum indicating whether it's initialized or not. You need to match on this enum to get the appropriate types to call most of the other functions in this module.

fn next(&mut self)

Modifies the bucket pointer in place to make it point to the next slot.

Trait Implementations

impl<K, V, M: Copy> Copy for Bucket<K, V, M>

impl<K, V, M: Copy> Clone for Bucket<K, V, M>

fn clone(&self) -> Bucket<K, V, M>

fn clone_from(&mut self, source: &Self)