Skip to main content

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// 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//! A crate providing unvalidated string and character types.
19
20#[cfg(feature = "alloc")]
21extern crate alloc;
22
23mod uchar;
24mod ustr;
25
26pub use uchar::PotentialCodePoint;
27pub use ustr::PotentialUtf16;
28pub use ustr::PotentialUtf8;
29
30#[cfg(feature = "writeable")]
31mod writeable;