这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@WaffleLapkin
Copy link
Contributor

Personally, I'd just not allow usize at all, but since it already is, we should at least support 16 bit targets...

I've rearranged primitive FromBits impls so that it's [clear that]

  • impl FromBits<T> for {u,i}size is only supported on platforms with size_of::<usize>() <= size_of::<T>()
  • impl FromBits<{u,i}size> for T is only supported on platforms with size_of::<T>() <= size_of::<usize>()

Copy link
Owner

@hawkw hawkw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@hawkw
Copy link
Owner

hawkw commented Jul 17, 2022

we should maybe remove the usize impls in the next breaking change, i agree that they may not really be worth the effort — who's actually going to use them?

@hawkw hawkw merged commit 9b02fae into hawkw:main Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants