这是indexloc提供的服务,不要输入任何密码
Skip to content

Support rust Option and C++ std::optional #87

@fbeutel

Description

@fbeutel

It would greatly simplify API development if automatic Option<T> conversion was supported.

Since C++17 there is std::optional<T>, which would allow a more or less direct translation of supported types.

I had a look at #67 and the ideas and work done by @myronahn for Vec seems to be similar to what would be needed for supporting Option so maybe one could build on that...

Metadata

Metadata

Assignees

No one assigned

    Labels

    new bindingInvolves adding a new public type to cxx crate or rust/cxx.h header

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions