-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comparison to other "safe transmute" crates #1
Comments
Thanks for suggestion! It looks like first two require to statically provide an equality proof, which could be impossible in some contexts — for example, when implementing a generic method of a foreign trait and arguably worse for usability: if you want to compare a type against several other types, you’ll need to carry an enum of I think the third one doesn’t provide equivalent functionality at all, but I’ll have to look further into it. |
I’ll describe this in README a little bit later. |
Another crate we might want to compare with is castaway which seems by far the most similar so far, but also seems to lack the functionality of |
It can cast simple references, but it seems to not be extendable. Also it uses macros instead of functions, so reqiured bounds are explained in text, not in types. It also lacks Thanks, I’ll add this to the comparison. |
Ah. I ended up using your crate instead of it because I didn't want to have to implement I think I have a real-world use-case for your crate, so thanks a lot for this! |
In the spirit of
I suggest documenting how this crate compares with some other crates that offer "safe transmute" functions, especially for transmuting a type to itself, such as
The text was updated successfully, but these errors were encountered: