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
50
51
52
53
54
/*
Copyright 2023 James Forster
This file is part of gap_query_interval_tree.
gap_query_interval_tree is free software: you can redistribute it
and/or modify it under the terms of the GNU Affero General Public
License as published by the Free Software Foundation, either
version 3 of the License, or (at your option) any later version.
gap_query_interval_tree is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public
License along with gap_query_interval_tree. If not, see
<https://www.gnu.org/licenses/>.
*/
//! A crate that provides a gap-query optimized interval-tree
//! data-structure.
//!
//! `no_std` is supported and should work with the default features.
//!
//! There are three main operations available on this data-structure:
//! insertion, removal and gap-queries. Each of which are `O(log(N) +
//! K)` where `N` is the total number of intervals in the tree and `K`
//! is the number of intervals required to be processed.
//!
//! Here are visualizations of the three operations:
//!
//! # Insertion
//! # Removal
//! # Gap-Query
extern crate alloc;
pub use EqualityTestGapQueryIntervalTree;
pub use GapQueryIntervalTree;
pub use NaiveGapQueryIntervalTree;
pub use IdType;
pub use NoGapsRefGapQueryIntervalTree;