Struct quil::instruction::PyBinaryOperands
source · #[repr(transparent)]pub struct PyBinaryOperands(_);
Implementations§
source§impl PyBinaryOperands
impl PyBinaryOperands
pub fn new( py: Python<'_>, memory_reference: PyMemoryReference, operand: PyBinaryOperand ) -> PyResult<Self>
pub fn get_memory_reference( &self, py: Python<'_> ) -> PyResult<PyMemoryReference>
pub fn set_memory_reference( &mut self, py: Python<'_>, memory_reference: PyMemoryReference ) -> PyResult<()>
pub fn get_operand(&self, py: Python<'_>) -> PyResult<PyBinaryOperand>
pub fn set_operand( &mut self, py: Python<'_>, binary_operand: PyBinaryOperand ) -> PyResult<()>
pub fn __richcmp__( &self, py: Python<'_>, other: &Self, op: CompareOp ) -> PyObject
Trait Implementations§
source§impl AsMut<<PyBinaryOperands as PyWrapper>::Inner> for PyBinaryOperands
impl AsMut<<PyBinaryOperands as PyWrapper>::Inner> for PyBinaryOperands
source§impl AsRef<(MemoryReference, BinaryOperand)> for PyBinaryOperands
impl AsRef<(MemoryReference, BinaryOperand)> for PyBinaryOperands
source§fn as_ref(&self) -> &BinaryOperands
fn as_ref(&self) -> &BinaryOperands
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PyBinaryOperands
impl Clone for PyBinaryOperands
source§fn clone(&self) -> PyBinaryOperands
fn clone(&self) -> PyBinaryOperands
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 PyBinaryOperands
impl Debug for PyBinaryOperands
source§impl From<&(MemoryReference, BinaryOperand)> for PyBinaryOperands
impl From<&(MemoryReference, BinaryOperand)> for PyBinaryOperands
source§fn from(inner: &BinaryOperands) -> Self
fn from(inner: &BinaryOperands) -> Self
Converts to this type from the input type.
source§impl From<(MemoryReference, BinaryOperand)> for PyBinaryOperands
impl From<(MemoryReference, BinaryOperand)> for PyBinaryOperands
source§fn from(inner: BinaryOperands) -> Self
fn from(inner: BinaryOperands) -> Self
Converts to this type from the input type.
source§impl From<PyBinaryOperands> for BinaryOperands
impl From<PyBinaryOperands> for BinaryOperands
source§fn from(wrapper: PyBinaryOperands) -> Self
fn from(wrapper: PyBinaryOperands) -> Self
Converts to this type from the input type.
source§impl PartialEq<PyBinaryOperands> for PyBinaryOperands
impl PartialEq<PyBinaryOperands> for PyBinaryOperands
source§fn eq(&self, other: &PyBinaryOperands) -> bool
fn eq(&self, other: &PyBinaryOperands) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PyClass for PyBinaryOperands
impl PyClass for PyBinaryOperands
source§impl PyClassImpl for PyBinaryOperands
impl PyClassImpl for PyBinaryOperands
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 Layout = PyCell<PyBinaryOperands>
type Layout = PyCell<PyBinaryOperands>
Layout
§type ThreadChecker = ThreadCheckerStub<PyBinaryOperands>
type ThreadChecker = ThreadCheckerStub<PyBinaryOperands>
This handles following two situations: Read more
type Inventory = Pyo3MethodsInventoryForPyBinaryOperands
§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 dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyBinaryOperands
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyBinaryOperands
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyBinaryOperands
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyBinaryOperands
source§impl PyTryFrom<PyAny> for PyBinaryOperands
impl PyTryFrom<PyAny> for PyBinaryOperands
source§impl PyTryFrom<PyBinaryOperands> for BinaryOperands
impl PyTryFrom<PyBinaryOperands> for BinaryOperands
source§fn py_try_from(py: Python<'_>, item: &PyBinaryOperands) -> PyResult<Self>
fn py_try_from(py: Python<'_>, item: &PyBinaryOperands) -> PyResult<Self>
source§impl PyTryFrom<PyBinaryOperands> for PyBinaryOperands
impl PyTryFrom<PyBinaryOperands> for PyBinaryOperands
source§fn py_try_from(py: Python<'_>, item: &PyBinaryOperands) -> PyResult<Self>
fn py_try_from(py: Python<'_>, item: &PyBinaryOperands) -> PyResult<Self>
source§impl PyTypeInfo for PyBinaryOperands
impl PyTypeInfo for PyBinaryOperands
§type AsRefTarget = PyCell<PyBinaryOperands>
type AsRefTarget = PyCell<PyBinaryOperands>
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 PyBinaryOperands
impl PyWrapper for PyBinaryOperands
§type Inner = (MemoryReference, BinaryOperand)
type Inner = (MemoryReference, BinaryOperand)
The Rust type being wrapped.
source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Converts this into the inner item. Read more
source§impl ToPyObject for PyBinaryOperands
impl ToPyObject for PyBinaryOperands
source§impl<'a> ToPython<PyBinaryOperands> for &'a BinaryOperands
impl<'a> ToPython<PyBinaryOperands> for &'a BinaryOperands
source§impl ToPython<PyBinaryOperands> for BinaryOperands
impl ToPython<PyBinaryOperands> for BinaryOperands
impl Eq for PyBinaryOperands
impl StructuralEq for PyBinaryOperands
impl StructuralPartialEq for PyBinaryOperands
Auto Trait Implementations§
impl RefUnwindSafe for PyBinaryOperands
impl Send for PyBinaryOperands
impl Sync for PyBinaryOperands
impl Unpin for PyBinaryOperands
impl UnwindSafe for PyBinaryOperands
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<'a, T> FromPyObject<'a> for Twhere
T: PyClass + Clone,
impl<'a, T> FromPyObject<'a> for Twhere T: PyClass + Clone,
source§impl<T> PyWrapperMut for Twhere
T: PyWrapper + AsMut<<T as PyWrapper>::Inner>,
impl<T> PyWrapperMut for Twhere T: PyWrapper + AsMut<<T as PyWrapper>::Inner>,
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
source§impl<T> ToBorrowedObject for Twhere
T: ToPyObject,
impl<T> ToBorrowedObject for Twhere T: ToPyObject,
source§fn with_borrowed_ptr<F, R>(&self, py: Python<'_>, f: F) -> Rwhere
F: FnOnce(*mut PyObject) -> R,
fn with_borrowed_ptr<F, R>(&self, py: Python<'_>, f: F) -> Rwhere F: FnOnce(*mut PyObject) -> R,
👎Deprecated since 0.17.0: this trait is no longer used by PyO3, use ToPyObject or IntoPy<PyObject>
Converts self into a Python object and calls the specified closure
on the native FFI pointer underlying the Python object. Read more