#![allow(unexpected_cfgs)]
#![no_std]
#![cfg_attr(feature = "nightly", feature(allocator_internals), needs_allocator)]
#![warn(missing_docs)]
#![allow(clippy::multiple_crate_versions, clippy::fallible_impl_from)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#[macro_use]
extern crate alloc;
#[macro_use]
mod prelude;
mod base;
mod hash;
pub use base::{Bf8, Bf16, Bf32};
mod bf;
use core::borrow::Borrow;
use core::hash::Hash;
pub use bf::Bf;
pub use hash::{RapidHasher, mix64};
pub trait Filter<T: ?Sized> {
fn has<Q: ?Sized>(&self, key: &Q) -> bool
where
T: Borrow<Q>,
Q: Hash;
fn len(&self) -> usize;
fn is_empty(&self) -> bool {
self.len() == 0
}
}