Struct quil::expression::PyPrefixExpression
source · pub struct PyPrefixExpression(/* private fields */);Implementations§
source§impl PyPrefixExpression
impl PyPrefixExpression
pub fn new( py: Python<'_>, operator: PyPrefixOperator, expression: PyExpression ) -> PyResult<Self>
Trait Implementations§
source§impl AsMut<<PyPrefixExpression as PyWrapper>::Inner> for PyPrefixExpression
impl AsMut<<PyPrefixExpression as PyWrapper>::Inner> for PyPrefixExpression
source§impl AsRef<PrefixExpression> for PyPrefixExpression
impl AsRef<PrefixExpression> for PyPrefixExpression
source§fn as_ref(&self) -> &PrefixExpression
fn as_ref(&self) -> &PrefixExpression
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PyPrefixExpression
impl Clone for PyPrefixExpression
source§fn clone(&self) -> PyPrefixExpression
fn clone(&self) -> PyPrefixExpression
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 PyPrefixExpression
impl Debug for PyPrefixExpression
source§impl From<&PrefixExpression> for PyPrefixExpression
impl From<&PrefixExpression> for PyPrefixExpression
source§fn from(inner: &PrefixExpression) -> Self
fn from(inner: &PrefixExpression) -> Self
Converts to this type from the input type.
source§impl From<PrefixExpression> for PyPrefixExpression
impl From<PrefixExpression> for PyPrefixExpression
source§fn from(inner: PrefixExpression) -> Self
fn from(inner: PrefixExpression) -> Self
Converts to this type from the input type.
source§impl From<PyPrefixExpression> for PrefixExpression
impl From<PyPrefixExpression> for PrefixExpression
source§fn from(wrapper: PyPrefixExpression) -> Self
fn from(wrapper: PyPrefixExpression) -> Self
Converts to this type from the input type.
source§impl PyClass for PyPrefixExpression
impl PyClass for PyPrefixExpression
source§impl PyClassImpl for PyPrefixExpression
impl PyClassImpl for PyPrefixExpression
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<PyPrefixExpression>
type ThreadChecker = SendablePyClass<PyPrefixExpression>
This handles following two situations: Read more
type Inventory = Pyo3MethodsInventoryForPyPrefixExpression
§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<PyPrefixExpression> for PyClassImplCollector<PyPrefixExpression>
impl PyClassNewTextSignature<PyPrefixExpression> for PyClassImplCollector<PyPrefixExpression>
fn new_text_signature(self) -> Option<&'static str>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyPrefixExpression
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyPrefixExpression
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyPrefixExpression
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyPrefixExpression
source§impl PyTryFrom<PyAny> for PyPrefixExpression
impl PyTryFrom<PyAny> for PyPrefixExpression
source§impl PyTryFrom<PyPrefixExpression> for PrefixExpression
impl PyTryFrom<PyPrefixExpression> for PrefixExpression
source§fn py_try_from(py: Python<'_>, item: &PyPrefixExpression) -> PyResult<Self>
fn py_try_from(py: Python<'_>, item: &PyPrefixExpression) -> PyResult<Self>
source§impl PyTryFrom<PyPrefixExpression> for PyPrefixExpression
impl PyTryFrom<PyPrefixExpression> for PyPrefixExpression
source§fn py_try_from(py: Python<'_>, item: &PyPrefixExpression) -> PyResult<Self>
fn py_try_from(py: Python<'_>, item: &PyPrefixExpression) -> PyResult<Self>
source§impl PyTypeInfo for PyPrefixExpression
impl PyTypeInfo for PyPrefixExpression
§type AsRefTarget = PyCell<PyPrefixExpression>
type AsRefTarget = PyCell<PyPrefixExpression>
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 PyPrefixExpression
impl PyWrapper for PyPrefixExpression
source§impl ToPyObject for PyPrefixExpression
impl ToPyObject for PyPrefixExpression
source§impl<'a> ToPython<PyPrefixExpression> for &'a PrefixExpression
impl<'a> ToPython<PyPrefixExpression> for &'a PrefixExpression
Auto Trait Implementations§
impl RefUnwindSafe for PyPrefixExpression
impl Send for PyPrefixExpression
impl Sync for PyPrefixExpression
impl Unpin for PyPrefixExpression
impl UnwindSafe for PyPrefixExpression
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