linear_hashtbl/lib.rs
1//! Hash table with open addressing and linear probing
2
3#![no_std]
4#![cfg_attr(feature = "nightly", feature(allocator_api))]
5#![deny(unsafe_op_in_unsafe_fn)]
6#![warn(missing_docs)]
7
8extern crate alloc;
9
10pub mod raw;
11
12#[cfg(not(any(feature = "allocator-api2", feature = "nightly")))]
13mod __alloc {
14 pub trait Allocator {}
15
16 #[derive(Clone, Copy, Default, Debug)]
17 pub struct Global;
18 impl Allocator for Global {}
19}