Struct quil::instruction::PyExchange
source · pub struct PyExchange(/* private fields */);Implementations§
source§impl PyExchange
impl PyExchange
source§impl PyExchange
impl PyExchange
source§impl PyExchange
impl PyExchange
source§impl PyExchange
impl PyExchange
pub fn new( py: Python<'_>, left: PyMemoryReference, right: PyMemoryReference ) -> PyResult<Self>
Trait Implementations§
source§impl AsMut<<PyExchange as PyWrapper>::Inner> for PyExchange
impl AsMut<<PyExchange as PyWrapper>::Inner> for PyExchange
source§impl AsRef<Exchange> for PyExchange
impl AsRef<Exchange> for PyExchange
source§impl Clone for PyExchange
impl Clone for PyExchange
source§fn clone(&self) -> PyExchange
fn clone(&self) -> PyExchange
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 PyExchange
impl Debug for PyExchange
source§impl From<&Exchange> for PyExchange
impl From<&Exchange> for PyExchange
source§impl From<Exchange> for PyExchange
impl From<Exchange> for PyExchange
source§impl From<PyExchange> for Exchange
impl From<PyExchange> for Exchange
source§fn from(wrapper: PyExchange) -> Self
fn from(wrapper: PyExchange) -> Self
Converts to this type from the input type.
source§impl PartialEq for PyExchange
impl PartialEq for PyExchange
source§fn eq(&self, other: &PyExchange) -> bool
fn eq(&self, other: &PyExchange) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PyClassImpl for PyExchange
impl PyClassImpl for PyExchange
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<PyExchange>
type ThreadChecker = SendablePyClass<PyExchange>
This handles following two situations: Read more
type Inventory = Pyo3MethodsInventoryForPyExchange
§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<PyExchange> for PyClassImplCollector<PyExchange>
impl PyClassNewTextSignature<PyExchange> for PyClassImplCollector<PyExchange>
fn new_text_signature(self) -> Option<&'static str>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyExchange
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyExchange
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyExchange
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyExchange
source§impl PyTryFrom<PyAny> for PyExchange
impl PyTryFrom<PyAny> for PyExchange
source§impl PyTryFrom<PyExchange> for Exchange
impl PyTryFrom<PyExchange> for Exchange
source§fn py_try_from(py: Python<'_>, item: &PyExchange) -> PyResult<Self>
fn py_try_from(py: Python<'_>, item: &PyExchange) -> PyResult<Self>
source§impl PyTryFrom<PyExchange> for PyExchange
impl PyTryFrom<PyExchange> for PyExchange
source§fn py_try_from(py: Python<'_>, item: &PyExchange) -> PyResult<Self>
fn py_try_from(py: Python<'_>, item: &PyExchange) -> PyResult<Self>
source§impl PyTypeInfo for PyExchange
impl PyTypeInfo for PyExchange
§type AsRefTarget = PyCell<PyExchange>
type AsRefTarget = PyCell<PyExchange>
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 PyExchange
impl PyWrapper for PyExchange
source§impl ToPyObject for PyExchange
impl ToPyObject for PyExchange
source§impl<'a> ToPython<PyExchange> for &'a Exchange
impl<'a> ToPython<PyExchange> for &'a Exchange
source§impl ToPython<PyExchange> for Exchange
impl ToPython<PyExchange> for Exchange
impl StructuralPartialEq for PyExchange
Auto Trait Implementations§
impl RefUnwindSafe for PyExchange
impl Send for PyExchange
impl Sync for PyExchange
impl Unpin for PyExchange
impl UnwindSafe for PyExchange
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