Struct quil::instruction::PyComparison
source · pub struct PyComparison(/* private fields */);Implementations§
source§impl PyComparison
impl PyComparison
source§impl PyComparison
impl PyComparison
source§impl PyComparison
impl PyComparison
source§impl PyComparison
impl PyComparison
pub fn new( py: Python<'_>, operator: PyComparisonOperator, operands: (PyMemoryReference, PyMemoryReference, PyComparisonOperand) ) -> PyResult<Self>
Trait Implementations§
source§impl AsMut<<PyComparison as PyWrapper>::Inner> for PyComparison
impl AsMut<<PyComparison as PyWrapper>::Inner> for PyComparison
source§impl AsRef<Comparison> for PyComparison
impl AsRef<Comparison> for PyComparison
source§fn as_ref(&self) -> &Comparison
fn as_ref(&self) -> &Comparison
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PyComparison
impl Clone for PyComparison
source§fn clone(&self) -> PyComparison
fn clone(&self) -> PyComparison
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 PyComparison
impl Debug for PyComparison
source§impl From<&Comparison> for PyComparison
impl From<&Comparison> for PyComparison
source§fn from(inner: &Comparison) -> Self
fn from(inner: &Comparison) -> Self
Converts to this type from the input type.
source§impl From<Comparison> for PyComparison
impl From<Comparison> for PyComparison
source§fn from(inner: Comparison) -> Self
fn from(inner: Comparison) -> Self
Converts to this type from the input type.
source§impl From<PyComparison> for Comparison
impl From<PyComparison> for Comparison
source§fn from(wrapper: PyComparison) -> Self
fn from(wrapper: PyComparison) -> Self
Converts to this type from the input type.
source§impl PartialEq for PyComparison
impl PartialEq for PyComparison
source§fn eq(&self, other: &PyComparison) -> bool
fn eq(&self, other: &PyComparison) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PyClassImpl for PyComparison
impl PyClassImpl for PyComparison
source§const IS_BASETYPE: bool = true
const IS_BASETYPE: bool = true
#[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<PyComparison>
type ThreadChecker = SendablePyClass<PyComparison>
This handles following two situations: Read more
type Inventory = Pyo3MethodsInventoryForPyComparison
§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 PyClassNewTextSignature<PyComparison> for PyClassImplCollector<PyComparison>
impl PyClassNewTextSignature<PyComparison> for PyClassImplCollector<PyComparison>
fn new_text_signature(self) -> Option<&'static str>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyComparison
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyComparison
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyComparison
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyComparison
source§impl PyTryFrom<PyAny> for PyComparison
impl PyTryFrom<PyAny> for PyComparison
source§impl PyTryFrom<PyComparison> for Comparison
impl PyTryFrom<PyComparison> for Comparison
source§fn py_try_from(py: Python<'_>, item: &PyComparison) -> PyResult<Self>
fn py_try_from(py: Python<'_>, item: &PyComparison) -> PyResult<Self>
source§impl PyTryFrom<PyComparison> for PyComparison
impl PyTryFrom<PyComparison> for PyComparison
source§fn py_try_from(py: Python<'_>, item: &PyComparison) -> PyResult<Self>
fn py_try_from(py: Python<'_>, item: &PyComparison) -> PyResult<Self>
source§impl PyTypeInfo for PyComparison
impl PyTypeInfo for PyComparison
§type AsRefTarget = PyCell<PyComparison>
type AsRefTarget = PyCell<PyComparison>
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 PyComparison
impl PyWrapper for PyComparison
source§impl ToPyObject for PyComparison
impl ToPyObject for PyComparison
source§impl<'a> ToPython<PyComparison> for &'a Comparison
impl<'a> ToPython<PyComparison> for &'a Comparison
source§impl ToPython<PyComparison> for Comparison
impl ToPython<PyComparison> for Comparison
impl StructuralPartialEq for PyComparison
Auto Trait Implementations§
impl RefUnwindSafe for PyComparison
impl Send for PyComparison
impl Sync for PyComparison
impl Unpin for PyComparison
impl UnwindSafe for PyComparison
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<'a, T> FromPyObject<'a> for T
impl<'a, T> FromPyObject<'a> for T
source§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
source§impl<T> PyWrapperMut for T
impl<T> PyWrapperMut for T
source§fn as_inner_mut(&mut self) -> &mut Self::Inner
fn as_inner_mut(&mut self) -> &mut Self::Inner
Returns a mutable reference to the inner item. Read more