Skip to content

Translate C++ constructors to new(...) #221

@abrown

Description

@abrown

I have only briefly looked into cxx (thanks for the library, BTW!) and I was wondering how to describe access to C++ constructors (and other class methods, for that matter) from Rust (using cxx::bridge). Is this possible and, if so, could you describe a simple example?

If it is currently not implemented, then is it still possible? It looks to me like the cxx::bridge macro only currently understands C++ functions--how would I describe constructors and methods contained within a type?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions