rdk_sys/bindings/
descriptors.rs

1#[cxx::bridge(namespace = "RDKit")]
2pub mod ffi {
3    unsafe extern "C++" {
4        include!("cpp/include/ro_mol.h");
5        include!("cpp/include/descriptors.h");
6
7        pub type ROMol = crate::ro_mol_ffi::ROMol;
8        pub type Properties;
9
10        pub fn new_properties() -> SharedPtr<Properties>;
11        pub fn get_property_names(
12            properties: SharedPtr<Properties>,
13        ) -> UniquePtr<CxxVector<CxxString>>;
14        pub fn compute_properties(
15            properties: SharedPtr<Properties>,
16            mol: SharedPtr<ROMol>,
17        ) -> UniquePtr<CxxVector<f64>>;
18    }
19}