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
I was wondering if it would be useful to Implement TryFrom, From, and Into for VirtAddr (and maybe other some types as well). I noticed that VirtAddr type specifically has a to_u64. Reading the docs though it seems like the Into trait might be a more idiomatic way to do this.
Another one that might make sense is the TryFrom for u64 and From trait for u32, u16, u8 (the latter would automatically create an Into according to the docs).
If this seems like a worthwhile feature I'd be happy to make pull request.
Fantastic crate btw!
The text was updated successfully, but these errors were encountered:
budde25
changed the title
Impl TryFrom, From, and Into for VirtAddr
Impl TryFrom, From, and Into for VirtAddrJun 15, 2021
Hello,
I was wondering if it would be useful to Implement TryFrom, From, and Into for VirtAddr (and maybe other some types as well). I noticed that VirtAddr type specifically has a
to_u64
. Reading the docs though it seems like the Into trait might be a more idiomatic way to do this.Another one that might make sense is the TryFrom for u64 and From trait for u32, u16, u8 (the latter would automatically create an Into according to the docs).
If this seems like a worthwhile feature I'd be happy to make pull request.
Fantastic crate btw!
The text was updated successfully, but these errors were encountered: