dtolnay/cxx

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

Ouverte

#741 ouverte le 17 mars 2021

 (1 commentaire) (1 réaction) (0 personne assignée)Rust (253 forks)batch import
help wanted

Métriques du dépôt

Stars
 (4 472 étoiles)
Métriques de merge PR
 (Merge moyen 8m) (3 PRs mergées en 30 j)

Description

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>>;
  }
}

Guide contributeur