Enum quil::instruction::PyComparisonOperator
source · pub enum PyComparisonOperator {
Equal,
GreaterThanOrEqual,
GreaterThan,
LessThanOrEqual,
LessThan,
}Variants§
Trait Implementations§
source§impl AsRef<ComparisonOperator> for PyComparisonOperator
impl AsRef<ComparisonOperator> for PyComparisonOperator
source§fn as_ref(&self) -> &ComparisonOperator
fn as_ref(&self) -> &ComparisonOperator
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PyComparisonOperator
impl Clone for PyComparisonOperator
source§fn clone(&self) -> PyComparisonOperator
fn clone(&self) -> PyComparisonOperator
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 PyComparisonOperator
impl Debug for PyComparisonOperator
source§impl From<&ComparisonOperator> for PyComparisonOperator
impl From<&ComparisonOperator> for PyComparisonOperator
source§fn from(item: &ComparisonOperator) -> Self
fn from(item: &ComparisonOperator) -> Self
Converts to this type from the input type.
source§impl From<&PyComparisonOperator> for ComparisonOperator
impl From<&PyComparisonOperator> for ComparisonOperator
source§fn from(item: &PyComparisonOperator) -> Self
fn from(item: &PyComparisonOperator) -> Self
Converts to this type from the input type.
source§impl From<ComparisonOperator> for PyComparisonOperator
impl From<ComparisonOperator> for PyComparisonOperator
source§fn from(item: ComparisonOperator) -> Self
fn from(item: ComparisonOperator) -> Self
Converts to this type from the input type.
source§impl From<PyComparisonOperator> for ComparisonOperator
impl From<PyComparisonOperator> for ComparisonOperator
source§fn from(item: PyComparisonOperator) -> Self
fn from(item: PyComparisonOperator) -> Self
Converts to this type from the input type.
source§impl PartialEq for PyComparisonOperator
impl PartialEq for PyComparisonOperator
source§fn eq(&self, other: &PyComparisonOperator) -> bool
fn eq(&self, other: &PyComparisonOperator) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PyClass for PyComparisonOperator
impl PyClass for PyComparisonOperator
source§impl PyClassImpl for PyComparisonOperator
impl PyClassImpl for PyComparisonOperator
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<PyComparisonOperator>
type ThreadChecker = SendablePyClass<PyComparisonOperator>
This handles following two situations: Read more
type Inventory = Pyo3MethodsInventoryForPyComparisonOperator
§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 PyComparisonOperator
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyComparisonOperator
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyComparisonOperator
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyComparisonOperator
source§impl PyTryFrom<PyComparisonOperator> for ComparisonOperator
impl PyTryFrom<PyComparisonOperator> for ComparisonOperator
source§fn py_try_from(_py: Python<'_>, item: &PyComparisonOperator) -> PyResult<Self>
fn py_try_from(_py: Python<'_>, item: &PyComparisonOperator) -> PyResult<Self>
source§impl PyTypeInfo for PyComparisonOperator
impl PyTypeInfo for PyComparisonOperator
§type AsRefTarget = PyCell<PyComparisonOperator>
type AsRefTarget = PyCell<PyComparisonOperator>
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 PyComparisonOperator
impl PyWrapper for PyComparisonOperator
source§impl ToPyObject for PyComparisonOperator
impl ToPyObject for PyComparisonOperator
source§impl<'a> ToPython<PyComparisonOperator> for &'a ComparisonOperator
impl<'a> ToPython<PyComparisonOperator> for &'a ComparisonOperator
impl Copy for PyComparisonOperator
impl Eq for PyComparisonOperator
impl StructuralEq for PyComparisonOperator
impl StructuralPartialEq for PyComparisonOperator
Auto Trait Implementations§
impl RefUnwindSafe for PyComparisonOperator
impl Send for PyComparisonOperator
impl Sync for PyComparisonOperator
impl Unpin for PyComparisonOperator
impl UnwindSafe for PyComparisonOperator
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.