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

PyObject::extract::<Vec<i32>>() cannot be called #32

Closed
dgrunwald opened this issue Oct 24, 2015 · 1 comment
Closed

PyObject::extract::<Vec<i32>>() cannot be called #32

dgrunwald opened this issue Oct 24, 2015 · 1 comment
Assignees

Comments

@dgrunwald
Copy link
Owner

src/objects/list.rs:252:37: 252:58 error: the requirement `for<'s>  : 's` is not satisfied (`expected bound lifetime parameter 's, found concrete lifetime`) [E0279]
src/objects/list.rs:252         let v2 = list.into_object().extract::<Vec<i32>>().unwrap();

I've looked into this issue, but I don't think it can be solved at the moment -- in the end, all my attempts run into the problem that I need either 'source : 'prepared, and such a constraint is incompatible with the use of the HRTB on PyObject::extract.

I've even tried to get rid of the 'source lifetime on ExtractPyObject (see extract_vec branch); but that only moved the problem to the 'python : 'prepared constraint.

Maybe the problem will finally be solvable if I also get rid of the 'python lifetime (#15).

@dgrunwald dgrunwald changed the title PyObject.extract::<Vec<i32>>() cannot be called PyObject::extract::<Vec<i32>>() cannot be called Oct 24, 2015
@dgrunwald dgrunwald self-assigned this Oct 25, 2015
@dgrunwald
Copy link
Owner Author

Removing both 'source and 'python solved the problem.

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

No branches or pull requests

1 participant