-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed get_most_common_isotope_mass to getMostCommonIsotopeMass whic…
…h avoids rewriting the function
- Loading branch information
Showing
3 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#[cxx::bridge(namespace = "RDKit")] | ||
pub mod ffi { | ||
unsafe extern "C++" { | ||
type PeriodicTable; | ||
include!("wrapper/include/periodic_table.h"); | ||
pub fn get_valence_list(atomic_number: u32) -> &'static CxxVector<i32>; | ||
pub fn get_most_common_isotope_mass(atom: &CxxString) -> f64; | ||
pub fn getMostCommonIsotopeMass(self: &PeriodicTable, atom: &CxxString) -> f64; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#pragma once | ||
|
||
#include "rust/cxx.h" | ||
#include <GraphMol/PeriodicTable.h> | ||
|
||
namespace RDKit { | ||
const std::vector<int> &get_valence_list(unsigned int atomic_number); | ||
double get_most_common_isotope_mass(const std::string &symbol); | ||
// double get_most_common_isotope_mass(const std::string &symbol); | ||
} // namespace RDKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters