dtolnay/cxx
Support rust::Vec and std::vector of SharedPtr to Opaque types
Aperta
#741 aperta il 17 mar 2021
help wanted
Metriche repository
- Star
- (4472 stelle)
- Metriche merge PR
- (Merge medio 8m) (3 PR mergiate in 30 g)
Descrizione
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>>;
}
}