-
-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementing
Char
for graphemes and all the necessary changes to ma…
…ke it happen. (#698) * feat!: add newtypes for working with graphemes add `Grapheme`, `Graphemes` and `GraphemeIter` types move the implementation of input traits to the `text` module replace type `Input::Item` with `Grapheme` implement seq traits for graphemes * refactor!: update the `Char` trait Remove `Char::Str` and everything related to it. Remove a number of supertraits for the `Char` trait. Replace `Char::to_char()` with `Char::to_ascii()`. Remove `Char::from_ascii()`. Add `Char::is_newline()`. Remove the generic `C` from `StrInput`. * feat: add a `Char` implementation for `Grapheme` * fix: fix errors generated in features * fix: remove the use of unstable features * fix: fix backwards compatibility * fix: fix `clippy` warnings * refactor!: make `Grapheme` and `Graphemes` unsized Replace their uses with references to them. * fix: remove unused lifetime in `src/text.rs:609:10` * feat: implement `StrInput` for `&Graphemes` * fix: fix `clippy` errors * feat!: manually implement `Debug` and `Display` for graphemes
- Loading branch information
Showing
10 changed files
with
636 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.