Find
C
ase-sensitive
R
egexp search
Path
mozilla-central
/
third_party
/
rust
/
strck
/
src
/
ident
Navigation
Enable keyboard shortcuts
Name
Description
Size
mod.rs
Checked owned and borrowed Unicode-based identifiers.
90
rust.rs
Checked strings containing Rust identifiers. Raw identifiers are unsupported. # Examples ```rust use strck::{IntoCk, ident::rust::RustIdent}; assert!("foo".ck::<RustIdent>().is_ok()); assert!("_identifier".ck::<RustIdent>().is_ok()); assert!("Москва".ck::<RustIdent>().is_ok()); assert!("東京".ck::<RustIdent>().is_ok()); assert!("struct".ck::<RustIdent>().is_err()); assert!("r#try".ck::<RustIdent>().is_err()); assert!("👍".ck::<RustIdent>().is_err()); ``` # Aliases This module exposes [`Ident`] and [`IdentBuf`], which alias `Ck<RustIdent>` and `Check<RustIdent>` respectively. These aliases are preferred to keep type signatures succinct. # Requirements This module is only available when the `rust` feature flag is enabled.
4590
unicode.rs
Checked strings containing Unicode identifiers according to the [Unicode Standard Annex #31](https://www.unicode.org/reports/tr31/). # Examples ```rust use strck::{IntoCk, ident::unicode::UnicodeIdent}; assert!("foo".ck::<UnicodeIdent>().is_ok()); assert!("struct".ck::<UnicodeIdent>().is_ok()); assert!("Москва".ck::<UnicodeIdent>().is_ok()); assert!("東京".ck::<UnicodeIdent>().is_ok()); assert!("_identifier".ck::<UnicodeIdent>().is_err()); assert!("r#try".ck::<UnicodeIdent>().is_err()); assert!("👍".ck::<UnicodeIdent>().is_err()); ``` # Aliases This module exposes [`Ident`] and [`IdentBuf`], which alias `Ck<UnicodeIdent>` and `Check<UnicodeIdent>` respectively. These aliases are preferred to keep type signatures succinct. These are also exported under the root, and can be accessed as `strck_ident::Ident` and `strck_ident::IdentBuf`.
4430