#[repr(C)]pub struct PyMethodObject {
pub ob_refcnt: Py_ssize_t,
pub ob_type: *mut PyTypeObject,
pub im_func: *mut PyObject,
pub im_self: *mut PyObject,
pub im_class: *mut PyObject,
pub im_weakreflist: *mut PyObject,
}
Fields§
§ob_refcnt: Py_ssize_t
§ob_type: *mut PyTypeObject
§im_func: *mut PyObject
§im_self: *mut PyObject
§im_class: *mut PyObject
§im_weakreflist: *mut PyObject
Trait Implementations§
Source§impl Clone for PyMethodObject
impl Clone for PyMethodObject
Source§fn clone(&self) -> PyMethodObject
fn clone(&self) -> PyMethodObject
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for PyMethodObject
Auto Trait Implementations§
impl Freeze for PyMethodObject
impl RefUnwindSafe for PyMethodObject
impl !Send for PyMethodObject
impl !Sync for PyMethodObject
impl Unpin for PyMethodObject
impl UnwindSafe for PyMethodObject
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more