Struct pyo3_macros_backend::defs::PyMethod
source · [−]This is supported on crate feature
pyproto
only.Expand description
Represents a method registered as a normal method like #[pymethods]
.
Fields
name: &'static str
proto: &'static str
can_coexist: bool
Implementations
Auto Trait Implementations
impl RefUnwindSafe for PyMethod
impl Send for PyMethod
impl Sync for PyMethod
impl Unpin for PyMethod
impl UnwindSafe for PyMethod
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more