Struct pyo3::ffi::PyGetSetDef
source · [−]#[repr(C)]pub struct PyGetSetDef {
pub name: *mut i8,
pub get: Option<unsafe extern "C" fn(*mut PyObject, *mut c_void) -> *mut PyObject>,
pub set: Option<unsafe extern "C" fn(*mut PyObject, *mut PyObject, *mut c_void) -> i32>,
pub doc: *const i8,
pub closure: *mut c_void,
}
Fields
name: *mut i8
get: Option<unsafe extern "C" fn(*mut PyObject, *mut c_void) -> *mut PyObject>
set: Option<unsafe extern "C" fn(*mut PyObject, *mut PyObject, *mut c_void) -> i32>
doc: *const i8
closure: *mut c_void
Trait Implementations
sourceimpl Clone for PyGetSetDef
impl Clone for PyGetSetDef
sourcefn clone(&self) -> PyGetSetDef
fn clone(&self) -> PyGetSetDef
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PyGetSetDef
impl Debug for PyGetSetDef
sourceimpl Default for PyGetSetDef
impl Default for PyGetSetDef
sourcefn default() -> PyGetSetDef
fn default() -> PyGetSetDef
Returns the “default value” for a type. Read more
sourceimpl PartialEq<PyGetSetDef> for PyGetSetDef
impl PartialEq<PyGetSetDef> for PyGetSetDef
sourcefn eq(&self, other: &PyGetSetDef) -> bool
fn eq(&self, other: &PyGetSetDef) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for PyGetSetDef
impl Eq for PyGetSetDef
impl StructuralEq for PyGetSetDef
impl StructuralPartialEq for PyGetSetDef
Auto Trait Implementations
impl RefUnwindSafe for PyGetSetDef
impl !Send for PyGetSetDef
impl !Sync for PyGetSetDef
impl Unpin for PyGetSetDef
impl UnwindSafe for PyGetSetDef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.