MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / PyGetSetDef

Class PyGetSetDef

python3-sys/src/descrobject.rs:14–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#[repr(C)]
13#[derive(Copy)]
14pub struct PyGetSetDef {
15 #[cfg(not(Py_3_7))]
16 pub name: *mut c_char,
17 #[cfg(Py_3_7)]
18 pub name: *const c_char,
19 pub get: Option<getter>,
20 pub set: Option<setter>,
21 #[cfg(not(Py_3_7))]
22 pub doc: *mut c_char,
23 #[cfg(Py_3_7)]
24 pub doc: *const c_char,
25 pub closure: *mut c_void,
26}
27
28impl Clone for PyGetSetDef {
29 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected