rdk_sys/bindings/
substruct_match.rs1#[cxx::bridge(namespace = "RDKit")]
2pub mod ffi {
3 unsafe extern "C++" {
4 include!("cpp/include/ro_mol.h");
5 include!("cpp/include/substruct_match.h");
6
7 pub type ROMol = crate::ro_mol_ffi::ROMol;
8 pub type SubstructMatchParameters;
9 pub type MatchVectType;
10
11 pub fn substruct_match(
12 mol: SharedPtr<ROMol>,
13 mol_query: SharedPtr<ROMol>,
14 params: SharedPtr<SubstructMatchParameters>,
15 ) -> UniquePtr<CxxVector<MatchVectType>>;
16
17 pub fn substruct_match_as_bool(
18 mol: SharedPtr<ROMol>,
19 mol_query: SharedPtr<ROMol>,
20 params: SharedPtr<SubstructMatchParameters>,
21 ) -> bool;
22
23 pub fn new_substruct_match_parameters() -> SharedPtr<SubstructMatchParameters>;
24 }
25}