potential_utf/
lib.rs

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#![cfg_attr(not(any(test, doc)), no_std)]
6#![cfg_attr(
7    not(test),
8    deny(
9        clippy::indexing_slicing,
10        clippy::unwrap_used,
11        clippy::expect_used,
12        clippy::panic,
13        clippy::exhaustive_structs,
14        clippy::exhaustive_enums,
15        clippy::trivially_copy_pass_by_ref,
16        missing_debug_implementations,
17    )
18)]
19
20//! A crate providing unvalidated string and character types.
21
22#[cfg(feature = "alloc")]
23extern crate alloc;
24
25mod uchar;
26mod ustr;
27
28pub use uchar::PotentialCodePoint;
29pub use ustr::PotentialUtf16;
30pub use ustr::PotentialUtf8;
31
32#[cfg(feature = "writeable")]
33mod writeable;