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