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