dtolnay/cxx

Support rust::Vec and std::vector of SharedPtr to Opaque types

Open

#741 创建于 2021年3月17日

在 GitHub 查看
 (1 评论) (1 反应) (0 负责人)Rust (4,472 star) (253 fork)batch import
help wanted

描述

I understand, why we can't hold opaque types in both vectors, but why we can't hold SharedPtrs to this types?

Those functions are currently unavailable.

#[cxx::bridge]
mod ffi {
  unsafe extern "C++" {
    fn opaqueVector() -> &'static CxxVector<SharedPtr<CxxString>>;
    fn opacueVec() -> Vec<SharedPtr<CxxString>>;
  }
}

贡献者指南