dtolnay/cxx
Support rust::Vec and std::vector of SharedPtr to Opaque types
オープン
#741 opened on 2021/03/17
help wanted
Repository metrics
- Stars
- (4,472 個のスター)
- PR merge metrics
- (平均マージ 8m) (30d で 3 merged PRs)
説明
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>>;
}
}