Revision control
Copy as Markdown
Other Tools
//! [![github-img]][github-url] [![crates-img]][crates-url] [![docs-img]][docs-url]
//!
//! [docs-url]: crate
//! [github-img]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github
//! [crates-img]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=555555&logo=rust
//!
//! Checked owned and borrowed Unicode-based identifiers.
//!
//! # Overview
//!
//! [`strck`] is a crate for creating checked owned and borrowed strings with
//! arbitrary invariants as the type level. This crate extends `strct` by providing
//! [`Invariant`]s for [Unicode identifiers][unicode] and [Rust identifiers][rust].
//! In the future, this crate may support identifiers for other languages as well.
//!
//! This crate re-exports [`Check`], [`Ck`], [`IntoCheck`], and [`IntoCk`] from
//! `strck`, so other libraries only have to depend on this crate.
//!
//! # Feature flags
//! * `rust`: Provide the [`rust`] module, containing an [`Invariant`] and type
//! aliases to [`Ck`] and [`Check`] for Rust identifiers. Disabled by default.
//!
//! [`Invariant`]: strck::Invariant
//! [`RustIdent`]: rust::RustIdent
//! [`Ck`]: strck::Ck
//! [`Check`]: strck::Check
pub mod unicode;
#[doc(no_inline)]
pub use unicode::{Ident, IdentBuf};
#[cfg(feature = "rust")]
pub mod rust;
#[doc(no_inline)]
pub use strck::{Check, Ck, IntoCheck, IntoCk, Invariant};