Struct python3_sys::PyGetSetDef
source · [−]#[repr(C)]pub struct PyGetSetDef {
pub name: *const c_char,
pub get: Option<getter>,
pub set: Option<setter>,
pub doc: *const c_char,
pub closure: *mut c_void,
}
Fields
name: *const c_char
get: Option<getter>
set: Option<setter>
doc: *const c_char
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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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