Struct pyo3::ffi::wrapperbase

source ·
pub struct wrapperbase {
    pub name: *const i8,
    pub offset: i32,
    pub function: *mut c_void,
    pub wrapper: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut c_void) -> *mut PyObject>,
    pub doc: *const i8,
    pub flags: i32,
    pub name_strobj: *mut PyObject,
}

Fields§

§name: *const i8§offset: i32§function: *mut c_void§wrapper: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut c_void) -> *mut PyObject>§doc: *const i8§flags: i32§name_strobj: *mut PyObject

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.