Struct FxSeededState

struct FxSeededState { ... }

FxSeededState is an alternative state for HashMap types, allowing to use FxHasher with a set seed.

# use std::collections::HashMap;
use rustc_hash::FxSeededState;

let mut map = HashMap::with_hasher(FxSeededState::with_seed(12));
map.insert(15, 610);
assert_eq!(map[&15], 610);

Implementations

impl FxSeededState

const fn with_seed(seed: usize) -> FxSeededState

Constructs a new FxSeededState that is initialized with a seed.

impl BuildHasher for FxSeededState

fn build_hasher(self: &Self) -> <Self as >::Hasher

impl Clone for FxSeededState

fn clone(self: &Self) -> FxSeededState

impl Freeze for FxSeededState

impl RefUnwindSafe for FxSeededState

impl Send for FxSeededState

impl Sync for FxSeededState

impl Unpin for FxSeededState

impl UnsafeUnpin for FxSeededState

impl UnwindSafe for FxSeededState

impl<T> Any for FxSeededState

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for FxSeededState

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for FxSeededState

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for FxSeededState

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for FxSeededState

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for FxSeededState

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for FxSeededState

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for FxSeededState

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for FxSeededState

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>