Crate strck_ident

Source
Expand description

github-img crates-img docs-img

Checked owned and borrowed Unicode-based identifiers.

§🚧 Deprecation Notice 🚧

This crate has been merged into strck under the ident feature flag, and now is a thin wrapper that just re-exports from it.

§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 Invariants for Unicode identifiers and Rust identifiers. 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.

Re-exports§

pub use strck::ident::unicode::Ident;
pub use strck::ident::unicode::IdentBuf;
pub use strck::Check;
pub use strck::Ck;
pub use strck::IntoCheck;
pub use strck::IntoCk;
pub use strck::Invariant;

Modules§

rust
Checked strings containing Rust identifiers.
unicode
Checked strings containing Unicode identifiers according to the Unicode Standard Annex #31.