I've noticed that there is a direct conversion from
impl From<char> for u32), since https://github.com/rust-lang/rust/pull/35755. However, there doesn't seem to be direct conversion from
u64, which seems surprising given that in general we have conversion rules
From<uNN> for uMM as long as
NN <= MM (as well as direct conversions from
char playing a special role here, or could
impl From<char> for u64 be added as well?
This is motivated by the following code: https://github.com/gendx/connect-box/commit/16d2bb41610641a80abdb338c020c6e0d1580a50.
See in particular https://travis-ci.org/github/gendx/connect-box/jobs/745979112.
error[E0277]: the trait bound `u64: From<char>` is not satisfied --> src/tui.rs:185:42 | 185 | ncurses::waddch(self.window, ' '.into()); | ^^^^^^^^^^ the trait `From<char>` is not implemented for `u64` | = help: the following implementations were found: <u64 as From<NonZeroU64>> <u64 as From<bool>> <u64 as From<u16>> <u64 as From<u32>> <u64 as From<u8>> = note: required because of the requirements on the impl of `Into<u64>` for `char`