A replacement for char

crates.io GitHub tag (latest SemVer) Continuous integration Crates.io Contribute with Gitpod

Open in Gitpod

This crate provides a replacement for the char type that is more ergonomic to use.

Because Rust's char::is_ascii* family of functions takes &self, it's impossible to use them as patterns. This is inconsistent with the rest of char::is_*, which takes self.

This crate provides char-taking variants of the is_ascii* family of functions.

Builds

| Platform | Rust Version |Status | | -------- | ------ | ------ | | Linux | stable
beta
nightly
MSRV (1.56.0) | Ubuntu x Stable Rust
Ubuntu x Beta Rust
Ubuntu x Nightly Rust
Ubuntu x MSRV Rust | | Windows | stable
beta
nightly
MSRV (1.56.0) | macos x Stable Rust
macos x Beta Rust
macos x Nightly Rust
macos x MSRV Rust | | macOS | stable
beta
nightly
MSRV (1.56.0) | Windows x Stable Rust
Windows x Beta Rust
Windows x Nightly Rust
Windows x MSRV Rust |