You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
the trait core::convert::From<usize> is not implemented for the type u64 #30495
The discusion about usize is in #28921 and #29220 (make sure to "Show outdated diff")
TL;DR: We need more motivating examples and maybe some mini-RFC describing the portability aspect to dispel the fears of the libs team.
Thanks @petrochenkov. Both issues are about conversion tousize, which is the opposite direction than specified in this issue. I needed conversion fromusize to u64 in order to use a FFI.
Anyway, I've noticed that there is a trait for usize to size_t, so I can tweak my FFI and use that instead.
Activity
petrochenkov commentedon Dec 20, 2015
https://github.com/rust-lang/rust/blob/master/src/libcore/num/mod.rs#L1984
The discusion about
usizeis in #28921 and #29220 (make sure to "Show outdated diff")TL;DR: We need more motivating examples and maybe some mini-RFC describing the portability aspect to dispel the fears of the libs team.
kornelski commentedon Dec 20, 2015
Thanks @petrochenkov. Both issues are about conversion to
usize, which is the opposite direction than specified in this issue. I needed conversion fromusizetou64in order to use a FFI.Anyway, I've noticed that there is a trait for
usizetosize_t, so I can tweak my FFI and use that instead.