rust-ascii icon indicating copy to clipboard operation
rust-ascii copied to clipboard

ASCII-only equivalents to `char`, `str` and `String`.

Results 16 rust-ascii issues
Sort by recently updated
recently updated
newest added

Since AsciiChars are valid UTF-8, we can directly convert an `&AsciiChar` to a `&str`.

Dear all, Is there any evidence if this crate is faster than Rust std String (for ASCII)? Did anybody do benchmark or something? Generally I think there should be a...

Somewhat mimicking char::from_digit, introduce AsciiChar::from_digit method which returns an ASCII digit character corresponding to given digit.

- Fix bindings_with_variant_name error - Better error message for AsciiChar::new

The [`lines`](https://docs.rs/ascii/latest/ascii/struct.AsciiStr.html#method.lines) and [`split`](https://docs.rs/ascii/latest/ascii/struct.AsciiStr.html#method.split) methods currently return `impl DoubleEndedIterator`. It would be nice if they returned a concrete type, similar to [`std::str::Lines`](https://doc.rust-lang.org/std/str/struct.Lines.html) and [`std::str::Split`](https://doc.rust-lang.org/std/str/struct.Split.html). A concrete type allows the the...

Including one from rustc. Test that the suggestions for clippy::explicit_auto_deref doesn't cause infinite recursion.

See title. I'm not an expert on what subset of const functions are stabilized yet, but I think a lot could already be `const fn` (think `AsciiChar::as_byte`).

hold

We could implement `std::str::pattern::Pattern` to be able to utilize many methods of the standard library. This issue is waiting for stabilization of https://github.com/rust-lang/rust/issues/27721.

nightly

`AsciiStr::split` currently only accepts an `AsciiChar` as an argument. This PR makes it so `split` now accepts any `Pattern`, and also adds `impl Pattern for AsciiChar` so as to not...

nightly