Skip to content
Discussion options

You must be logged in to vote

You're probably looking for `#[pyo3(name = "...")] option:

#[cfg(feature = "pyo3")]
#[pymethods]
impl MyStruct {
 #[pyo3(name = "reset")]
 pub fn reset_py(args) {
  self.reset(args)
 }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AndrewJSchoen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants