]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #84640 - ids1024:u8_from_char, r=m-ou-se
authorEric Huss <eric@huss.org>
Sat, 8 Jan 2022 04:20:55 +0000 (20:20 -0800)
committerGitHub <noreply@github.com>
Sat, 8 Jan 2022 04:20:55 +0000 (20:20 -0800)
commit83de77dd5e2b853b95a12ac8c6cc202eec81892b
tree57928649c0153e1430b43c8321f382440156a168
parente012a191d768adeda1ee36a99ef8b92d51920154
parenta02639dc09fa0cde2cec73e6260d6702e165b8ce
Rollup merge of #84640 - ids1024:u8_from_char, r=m-ou-se

Implement `TryFrom<char>` for `u8`

Previously suggested in https://github.com/rust-lang/rfcs/issues/2854.

It makes sense to have this since `char` implements `From<u8>`. Likewise `u32`, `u64`, and `u128` (since #79502) implement `From<char>`.