Struct simics_api_sys::bindings::PyNumberMethods
source · #[repr(C)]pub struct PyNumberMethods {Show 36 fields
pub nb_add: binaryfunc,
pub nb_subtract: binaryfunc,
pub nb_multiply: binaryfunc,
pub nb_remainder: binaryfunc,
pub nb_divmod: binaryfunc,
pub nb_power: ternaryfunc,
pub nb_negative: unaryfunc,
pub nb_positive: unaryfunc,
pub nb_absolute: unaryfunc,
pub nb_bool: inquiry,
pub nb_invert: unaryfunc,
pub nb_lshift: binaryfunc,
pub nb_rshift: binaryfunc,
pub nb_and: binaryfunc,
pub nb_xor: binaryfunc,
pub nb_or: binaryfunc,
pub nb_int: unaryfunc,
pub nb_reserved: *mut c_void,
pub nb_float: unaryfunc,
pub nb_inplace_add: binaryfunc,
pub nb_inplace_subtract: binaryfunc,
pub nb_inplace_multiply: binaryfunc,
pub nb_inplace_remainder: binaryfunc,
pub nb_inplace_power: ternaryfunc,
pub nb_inplace_lshift: binaryfunc,
pub nb_inplace_rshift: binaryfunc,
pub nb_inplace_and: binaryfunc,
pub nb_inplace_xor: binaryfunc,
pub nb_inplace_or: binaryfunc,
pub nb_floor_divide: binaryfunc,
pub nb_true_divide: binaryfunc,
pub nb_inplace_floor_divide: binaryfunc,
pub nb_inplace_true_divide: binaryfunc,
pub nb_index: unaryfunc,
pub nb_matrix_multiply: binaryfunc,
pub nb_inplace_matrix_multiply: binaryfunc,
}
Expand description
End buffer interface
Fields§
§nb_add: binaryfunc
Number implementations must check both arguments for proper type and implement the necessary conversions in the slot functions themselves.
nb_subtract: binaryfunc
§nb_multiply: binaryfunc
§nb_remainder: binaryfunc
§nb_divmod: binaryfunc
§nb_power: ternaryfunc
§nb_negative: unaryfunc
§nb_positive: unaryfunc
§nb_absolute: unaryfunc
§nb_bool: inquiry
§nb_invert: unaryfunc
§nb_lshift: binaryfunc
§nb_rshift: binaryfunc
§nb_and: binaryfunc
§nb_xor: binaryfunc
§nb_or: binaryfunc
§nb_int: unaryfunc
§nb_reserved: *mut c_void
the slot formerly known as nb_long
nb_float: unaryfunc
§nb_inplace_add: binaryfunc
§nb_inplace_subtract: binaryfunc
§nb_inplace_multiply: binaryfunc
§nb_inplace_remainder: binaryfunc
§nb_inplace_power: ternaryfunc
§nb_inplace_lshift: binaryfunc
§nb_inplace_rshift: binaryfunc
§nb_inplace_and: binaryfunc
§nb_inplace_xor: binaryfunc
§nb_inplace_or: binaryfunc
§nb_floor_divide: binaryfunc
§nb_true_divide: binaryfunc
§nb_inplace_floor_divide: binaryfunc
§nb_inplace_true_divide: binaryfunc
§nb_index: unaryfunc
§nb_matrix_multiply: binaryfunc
§nb_inplace_matrix_multiply: binaryfunc
Trait Implementations§
source§impl Clone for PyNumberMethods
impl Clone for PyNumberMethods
source§fn clone(&self) -> PyNumberMethods
fn clone(&self) -> PyNumberMethods
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 PyNumberMethods
impl Debug for PyNumberMethods
source§impl Default for PyNumberMethods
impl Default for PyNumberMethods
source§impl Hash for PyNumberMethods
impl Hash for PyNumberMethods
source§impl Ord for PyNumberMethods
impl Ord for PyNumberMethods
source§fn cmp(&self, other: &PyNumberMethods) -> Ordering
fn cmp(&self, other: &PyNumberMethods) -> 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 PyNumberMethods
impl PartialEq for PyNumberMethods
source§impl PartialOrd for PyNumberMethods
impl PartialOrd for PyNumberMethods
impl Copy for PyNumberMethods
impl Eq for PyNumberMethods
impl StructuralPartialEq for PyNumberMethods
Auto Trait Implementations§
impl Freeze for PyNumberMethods
impl RefUnwindSafe for PyNumberMethods
impl !Send for PyNumberMethods
impl !Sync for PyNumberMethods
impl Unpin for PyNumberMethods
impl UnwindSafe for PyNumberMethods
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
)