Struct necsim_impls_no_std::cache::DirectMappedCache
source · pub struct DirectMappedCache<T: Hash + PartialEq, S: BuildHasher = FnvBuildHasher> { /* private fields */ }
Implementations§
source§impl<T: Hash + PartialEq> DirectMappedCache<T, FnvBuildHasher>
impl<T: Hash + PartialEq> DirectMappedCache<T, FnvBuildHasher>
pub fn with_capacity(capacity: usize) -> Self
source§impl<T: Hash + PartialEq, S: BuildHasher> DirectMappedCache<T, S>
impl<T: Hash + PartialEq, S: BuildHasher> DirectMappedCache<T, S>
pub fn with_capacity_and_hasher(capacity: usize, build_hasher: S) -> Self
Auto Trait Implementations§
impl<T, S> Freeze for DirectMappedCache<T, S>where
S: Freeze,
impl<T, S> RefUnwindSafe for DirectMappedCache<T, S>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for DirectMappedCache<T, S>
impl<T, S> Sync for DirectMappedCache<T, S>
impl<T, S> Unpin for DirectMappedCache<T, S>where
S: Unpin,
impl<T, S> UnwindSafe for DirectMappedCache<T, S>where
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> ExtractDiscriminant for T
impl<T> ExtractDiscriminant for T
§type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
The type of the discriminant, which must satisfy the trait bounds
required by
core::mem::Discriminant
. Read more