Enum quil::instruction::PyArithmeticOperator
source · pub enum PyArithmeticOperator {
Add,
Subtract,
Divide,
Multiply,
}Variants§
Implementations§
Trait Implementations§
source§impl AsRef<ArithmeticOperator> for PyArithmeticOperator
impl AsRef<ArithmeticOperator> for PyArithmeticOperator
source§fn as_ref(&self) -> &ArithmeticOperator
fn as_ref(&self) -> &ArithmeticOperator
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PyArithmeticOperator
impl Clone for PyArithmeticOperator
source§fn clone(&self) -> PyArithmeticOperator
fn clone(&self) -> PyArithmeticOperator
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 PyArithmeticOperator
impl Debug for PyArithmeticOperator
source§impl From<&ArithmeticOperator> for PyArithmeticOperator
impl From<&ArithmeticOperator> for PyArithmeticOperator
source§fn from(item: &ArithmeticOperator) -> Self
fn from(item: &ArithmeticOperator) -> Self
Converts to this type from the input type.
source§impl From<&PyArithmeticOperator> for ArithmeticOperator
impl From<&PyArithmeticOperator> for ArithmeticOperator
source§fn from(item: &PyArithmeticOperator) -> Self
fn from(item: &PyArithmeticOperator) -> Self
Converts to this type from the input type.
source§impl From<ArithmeticOperator> for PyArithmeticOperator
impl From<ArithmeticOperator> for PyArithmeticOperator
source§fn from(item: ArithmeticOperator) -> Self
fn from(item: ArithmeticOperator) -> Self
Converts to this type from the input type.
source§impl From<PyArithmeticOperator> for ArithmeticOperator
impl From<PyArithmeticOperator> for ArithmeticOperator
source§fn from(item: PyArithmeticOperator) -> Self
fn from(item: PyArithmeticOperator) -> Self
Converts to this type from the input type.
source§impl PartialEq for PyArithmeticOperator
impl PartialEq for PyArithmeticOperator
source§fn eq(&self, other: &PyArithmeticOperator) -> bool
fn eq(&self, other: &PyArithmeticOperator) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PyClass for PyArithmeticOperator
impl PyClass for PyArithmeticOperator
source§impl PyClassImpl for PyArithmeticOperator
impl PyClassImpl for PyArithmeticOperator
source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
§type ThreadChecker = SendablePyClass<PyArithmeticOperator>
type ThreadChecker = SendablePyClass<PyArithmeticOperator>
This handles following two situations: Read more
type Inventory = Pyo3MethodsInventoryForPyArithmeticOperator
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyArithmeticOperator
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyArithmeticOperator
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyArithmeticOperator
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyArithmeticOperator
source§impl PyTryFrom<PyArithmeticOperator> for ArithmeticOperator
impl PyTryFrom<PyArithmeticOperator> for ArithmeticOperator
source§fn py_try_from(_py: Python<'_>, item: &PyArithmeticOperator) -> PyResult<Self>
fn py_try_from(_py: Python<'_>, item: &PyArithmeticOperator) -> PyResult<Self>
source§impl PyTypeInfo for PyArithmeticOperator
impl PyTypeInfo for PyArithmeticOperator
§type AsRefTarget = PyCell<PyArithmeticOperator>
type AsRefTarget = PyCell<PyArithmeticOperator>
Utility type to make Py::as_ref work.
source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if
object is an instance of this type or a subclass of this type.source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object is an instance of this type.source§impl PyWrapper for PyArithmeticOperator
impl PyWrapper for PyArithmeticOperator
source§impl ToPyObject for PyArithmeticOperator
impl ToPyObject for PyArithmeticOperator
source§impl<'a> ToPython<PyArithmeticOperator> for &'a ArithmeticOperator
impl<'a> ToPython<PyArithmeticOperator> for &'a ArithmeticOperator
impl Copy for PyArithmeticOperator
impl StructuralPartialEq for PyArithmeticOperator
Auto Trait Implementations§
impl RefUnwindSafe for PyArithmeticOperator
impl Send for PyArithmeticOperator
impl Sync for PyArithmeticOperator
impl Unpin for PyArithmeticOperator
impl UnwindSafe for PyArithmeticOperator
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