Skip to content

Avoid Rust null checks for C++ non-null pointers #50

@teor2345

Description

@teor2345

When a pointer (or reference) is guaranteed to be non-null in C++, it should interop with Rust NonNull, ideally without redundant null checks.

Crubit's solution is here: https://crubit.rs/design/design.html#source-of-additional-information-that-customizes-c-api-projection-into-rust

Metadata

Metadata

Assignees

No one assigned

    Labels

    l-c++Changes that are mainly in C++ (or C)p-performancePerformance-related problems or use casest-use-caseA Rust/C++ interop usage example

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions