| 1 |
// This file is part of ICU4X. For terms of use, please see the file |
| 2 |
// called LICENSE at the top level of the ICU4X source tree |
| 3 |
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). |
| 4 |
|
| 5 |
// https://github.com/unicode-org/icu4x/blob/main/documents/process/boilerplate.md#library-annotations |
| 6 |
#![cfg_attr(not(any(test, doc)), no_std)] |
| 7 |
#![cfg_attr( |
| 8 |
not(test), |
| 9 |
deny( |
| 10 |
clippy::indexing_slicing, |
| 11 |
clippy::unwrap_used, |
| 12 |
clippy::expect_used, |
| 13 |
clippy::panic, |
| 14 |
) |
| 15 |
)] |
| 16 |
#![warn(missing_docs)] |
| 17 |
|
| 18 |
//! Efficient collections for Unicode data. |
| 19 |
//! |
| 20 |
//! This module is published as its own crate ([`icu_collections`](https://docs.rs/icu_collections/latest/icu_collections/)) |
| 21 |
//! and as part of the [`icu`](https://docs.rs/icu/latest/icu/) crate. See the latter for more details on the ICU4X project. |
| 22 |
//! |
| 23 |
//! ICU4X [`CodePointTrie`](crate::codepointtrie::CodePointTrie) provides a read-only view of `CodePointTrie` data that is exported |
| 24 |
//! from ICU4C. Detailed information about the design of the data structure can be found in the documentation |
| 25 |
//! for the [`CodePointTrie`](crate::codepointtrie::CodePointTrie) struct. |
| 26 |
//! |
| 27 |
//! ICU4X [`CodePointInversionList`](`crate::codepointinvlist::CodePointInversionList`) provides necessary functionality for highly efficient querying of sets of Unicode characters. |
| 28 |
//! It is an implementation of the existing [ICU4C UnicodeSet API](https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classicu_1_1UnicodeSet.html). |
| 29 |
//! |
| 30 |
//! ICU4X [`Char16Trie`](`crate::char16trie::Char16Trie`) provides a data structure for a space-efficient and time-efficient lookup of |
| 31 |
//! sequences of 16-bit units (commonly but not necessarily UTF-16 code units) |
| 32 |
//! which map to integer values. |
| 33 |
//! It is an implementation of the existing [ICU4C UCharsTrie](https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classicu_1_1UCharsTrie.html) |
| 34 |
//! / [ICU4J CharsTrie](https://unicode-org.github.io/icu-docs/apidoc/released/icu4j/com/ibm/icu/util/CharsTrie.html) API. |
| 35 |
|
| 36 |
#[cfg(feature = "alloc")] |
| 37 |
extern crate alloc; |
| 38 |
|
| 39 |
pub mod char16trie; |
| 40 |
pub mod codepointinvlist; |
| 41 |
pub mod codepointinvliststringlist; |
| 42 |
pub mod codepointtrie; |
| 43 |
|
| 44 |
pub(crate) mod iterator_utils; |