//! This module defines a custom hasher, which can be used in a `#![no_std]` environment.
//!//! The code is taken from [indexmap's `#![no_std]` integration test](https://github.com/indexmap-rs/indexmap/blob/main/test-nostd/src/lib.rs).
#[cfg(feature ="indexmap_impl")]pubmodindexmap{usecore::hash::BuildHasherDefault;usecore::hash::Hasher;#[derive(Default)]pubstructBadHasher(u64);implHasher forBadHasher{fnfinish(&self)->u64{self.0}fnwrite(&mutself, bytes:&[u8]){for&byte in bytes {self.0+= byte asu64}}}pubtypeIndexMap<K, V>=indexmap::IndexMap<K, V, BuildHasherDefault<BadHasher>>;}