Struct simics_api_sys::bindings::py_wrap_c_func
source · #[repr(C)]pub struct py_wrap_c_func {
pub meth: PyMethodDef,
pub python_caller: Option<unsafe extern "C" fn()>,
pub trampoline_data: *const trampoline_data,
pub is_method: bool,
pub arity: c_uchar,
pub c_to_py_table: *mut ht_int_table_t,
pub py_to_c_dict: *mut PyObject,
}
Expand description
struct to hold data about each type of generated trampolines (one per signature)
Fields§
§meth: PyMethodDef
Python definition
python_caller: Option<unsafe extern "C" fn()>
C function that converts arguments and calls Python
trampoline_data: *const trampoline_data
information about generated trampolines
is_method: bool
non-zero if this is a “method” function that can bind to an object
arity: c_uchar
Number of arguments the function takes, including the first “object” argument if it is a method.
c_to_py_table: *mut ht_int_table_t
Python wrapper, indexed by a hash of the C function and bound object
py_to_c_dict: *mut PyObject
PyDictObject with PyCObject(C wrapper), indexed by Python object
Trait Implementations§
source§impl Clone for py_wrap_c_func
impl Clone for py_wrap_c_func
source§fn clone(&self) -> py_wrap_c_func
fn clone(&self) -> py_wrap_c_func
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 moresource§impl Debug for py_wrap_c_func
impl Debug for py_wrap_c_func
source§impl Default for py_wrap_c_func
impl Default for py_wrap_c_func
source§impl Hash for py_wrap_c_func
impl Hash for py_wrap_c_func
source§impl Ord for py_wrap_c_func
impl Ord for py_wrap_c_func
source§fn cmp(&self, other: &py_wrap_c_func) -> Ordering
fn cmp(&self, other: &py_wrap_c_func) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for py_wrap_c_func
impl PartialEq for py_wrap_c_func
source§impl PartialOrd for py_wrap_c_func
impl PartialOrd for py_wrap_c_func
impl Copy for py_wrap_c_func
impl Eq for py_wrap_c_func
impl StructuralPartialEq for py_wrap_c_func
Auto Trait Implementations§
impl Freeze for py_wrap_c_func
impl RefUnwindSafe for py_wrap_c_func
impl !Send for py_wrap_c_func
impl !Sync for py_wrap_c_func
impl Unpin for py_wrap_c_func
impl UnwindSafe for py_wrap_c_func
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)