Struct FixedState

pub struct FixedState { /* private fields */ }

A BuildHasher for fast::FoldHasher that always has the same fixed seed.

Not recommended unless you absolutely need determinism.

Implementations

impl FixedState

const fn with_seed(per_hasher_seed: u64) -> Self

Creates a FixedState with the given per-hasher-seed.

Trait Implementations

impl BuildHasher for FixedState

type Hasher = FoldHasher<'static>;
fn build_hasher(&self) -> FoldHasher<'static>

impl Clone for FixedState

fn clone(&self) -> FixedState

impl Debug for FixedState

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for FixedState

fn default() -> Self

Auto Trait Implementations

impl Freeze for FixedState

impl RefUnwindSafe for FixedState

impl Send for FixedState

impl Sync for FixedState

impl Unpin for FixedState

impl UnsafeUnpin for FixedState

impl UnwindSafe for FixedState

Blanket Implementations

impl<T> Any for FixedState where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for FixedState where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for FixedState where T: ?Sized,

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

impl<T> CloneToUninit for FixedState where T: Clone,

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

impl<T> From<T> for FixedState

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for FixedState where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for FixedState where U: From<T>,

fn into(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<U> for FixedState where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for FixedState where U: TryFrom<T>,

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