1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! The simple Indicium search implementation. Fewer bells-and-whistles but
//! easier to use than the other options.
//!
//! There might be more search implementations in future versions.

#[cfg(all(feature = "eddie", feature = "strsim"))]
compile_error!("features `eddie` (preferred) and `strsim` cannot both be enabled");

#[cfg(all(feature = "ahash", feature = "gxhash"))]
compile_error!("features `ahash` (preferred) and `gxhash` cannot both be enabled");

// Directories:
mod autocomplete;
mod internal;
mod search;

// Methods, structs & implementations:
mod autocomplete_type;
mod builder;
mod clear;
mod default;
mod deref;
mod deref_mut;
mod dump_keyword;
mod eddie_metric;
mod indexable;
mod insert;
mod max_keys_per_keyword;
mod new;
mod remove;
mod replace;
mod search_index;
mod search_type;
mod strsim_metric;
mod tests;

// For debug builds only:
#[cfg(debug_assertions)]
mod profile;

// -----------------------------------------------------------------------------

pub use crate::simple::autocomplete_type::AutocompleteType;
pub use crate::simple::builder::SearchIndexBuilder;
pub use crate::simple::eddie_metric::EddieMetric;
pub use crate::simple::indexable::Indexable;
pub use crate::simple::search_index::SearchIndex;
pub use crate::simple::search_type::SearchType;
pub use crate::simple::strsim_metric::StrsimMetric;