Skip to content
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

Add Table with conversions between wrapper types #376

Closed
konstin opened this issue Feb 26, 2019 · 2 comments · Fixed by #1157
Closed

Add Table with conversions between wrapper types #376

konstin opened this issue Feb 26, 2019 · 2 comments · Fixed by #1157
Assignees
Milestone

Comments

@konstin
Copy link
Member

konstin commented Feb 26, 2019

We should add a table to the documentation that explains with trait and method to use to convert one wrapper type to another. This is complementary to #374.

For example you use ToPyObject::to_object to convert &PySomeNativeType to PyObject and there's AsPyRef to convert PyObject and Py<T> to PyRef<T>s.

@pganssle
Copy link
Member

You beat me to it, I was going to suggest the same thing.

I was thinking there should be an N x N grid, possibly with color-coded backgrounds to indicate things like "zero cost conversion" and whether the transformation is safe.

@davidhewitt
Copy link
Member

I'm going to work on this as tidy ups for 0.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants