I've created a repo for defining base marker traits that can be shared among all implementations of safe transmute. Again, the idea is that this repo would be the launching pad for any traits that would wind up in the std lib. Here is the first issue for discussing FromBytes/AsBytes https://github.com/rylev/mem-markers/issues/1 (note: this is on my personal GitHub until we can transfer to the rust-secure-code organization)
@Jack Wrenn @Joshua Liebow-Feeser one thing I would love to talk more about is how useful these marker traits are or are not to Typic
Thanks to @Shnatsel the repo has been moved: https://github.com/rust-secure-code/mem-markers
I've invited some people as admins to this repo but I'm sure I'm forgetting someone. If you want write access and did not receive an invite, ping me
I'd like to start implementing some of the traits. Does anyone have any objections to this: https://github.com/rust-secure-code/mem-markers/issues/1. I assume this crate also will support custom derives for each of them. Any objections to that?
@Jack Wrenn @Joshua Liebow-Feeser I'd also love to hear from you two since it's the least clear how well this plays into a typic style solution
I've left comments addressing your question on the github issue: https://github.com/rust-secure-code/mem-markers/issues/1#issuecomment-601810244
I think that ToBytes and FromBytes are perhaps too broad and could be broken up into sub-markers and then you have ToBytes any time you have NoUninit and also FixedLayout
But they should exist somewhere, so feel free to go ahead.