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

Retrieve slice from CxxVector #320

Closed
roligugus opened this issue Sep 24, 2020 · 0 comments · Fixed by #322
Closed

Retrieve slice from CxxVector #320

roligugus opened this issue Sep 24, 2020 · 0 comments · Fixed by #322

Comments

@roligugus
Copy link

There is currently no way to get a slice out of a CxxVector. Let's add the a new get_slice() helper so that rust code can use a slice.

Background, we're doing some C++ -> rust API in-house and there's been a wish for that functionality to have "nicer C++ APIs".

Yes, one can use a slice in the FFI API as a work-around. I.e. use rust::Slice in C++.

Pull request incoming.

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

Successfully merging a pull request may close this issue.

1 participant