Skip to main content

HashTableInsertOrFindResult

Type Alias HashTableInsertOrFindResult 

Source
pub type HashTableInsertOrFindResult<'a, K, P, B, H> = Result<(), (P, HashTableCursorMut<'a, K, P, B, H>)>;
Expand description

The result of HashTable::insert_or_find.

Ok(()) if the element was inserted, or Err((ptr, cursor)) with the rejected pointer and a cursor positioned at the colliding element otherwise.

Aliased Type§

pub enum HashTableInsertOrFindResult<'a, K, P, B, H> {
    Ok(()),
    Err((P, HashTableCursorMut<'a, K, P, B, H>)),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err((P, HashTableCursorMut<'a, K, P, B, H>))

Contains the error value