Enum quil::expression::PyPrefixOperator
source · pub enum PyPrefixOperator {
Plus,
Minus,
}Variants§
Implementations§
Trait Implementations§
source§impl AsRef<PrefixOperator> for PyPrefixOperator
impl AsRef<PrefixOperator> for PyPrefixOperator
source§fn as_ref(&self) -> &PrefixOperator
fn as_ref(&self) -> &PrefixOperator
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PyPrefixOperator
impl Clone for PyPrefixOperator
source§fn clone(&self) -> PyPrefixOperator
fn clone(&self) -> PyPrefixOperator
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 PyPrefixOperator
impl Debug for PyPrefixOperator
source§impl From<&PrefixOperator> for PyPrefixOperator
impl From<&PrefixOperator> for PyPrefixOperator
source§fn from(item: &PrefixOperator) -> Self
fn from(item: &PrefixOperator) -> Self
Converts to this type from the input type.
source§impl From<&PyPrefixOperator> for PrefixOperator
impl From<&PyPrefixOperator> for PrefixOperator
source§fn from(item: &PyPrefixOperator) -> Self
fn from(item: &PyPrefixOperator) -> Self
Converts to this type from the input type.
source§impl From<PrefixOperator> for PyPrefixOperator
impl From<PrefixOperator> for PyPrefixOperator
source§fn from(item: PrefixOperator) -> Self
fn from(item: PrefixOperator) -> Self
Converts to this type from the input type.
source§impl From<PyPrefixOperator> for PrefixOperator
impl From<PyPrefixOperator> for PrefixOperator
source§fn from(item: PyPrefixOperator) -> Self
fn from(item: PyPrefixOperator) -> Self
Converts to this type from the input type.
source§impl Hash for PyPrefixOperator
impl Hash for PyPrefixOperator
source§impl PartialEq for PyPrefixOperator
impl PartialEq for PyPrefixOperator
source§fn eq(&self, other: &PyPrefixOperator) -> bool
fn eq(&self, other: &PyPrefixOperator) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PyClass for PyPrefixOperator
impl PyClass for PyPrefixOperator
source§impl PyClassImpl for PyPrefixOperator
impl PyClassImpl for PyPrefixOperator
source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[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<PyPrefixOperator>
type ThreadChecker = SendablePyClass<PyPrefixOperator>
This handles following two situations: Read more
type Inventory = Pyo3MethodsInventoryForPyPrefixOperator
§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<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyPrefixOperator
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyPrefixOperator
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyPrefixOperator
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyPrefixOperator
source§impl PyTryFrom<PyPrefixOperator> for PrefixOperator
impl PyTryFrom<PyPrefixOperator> for PrefixOperator
source§fn py_try_from(_py: Python<'_>, item: &PyPrefixOperator) -> PyResult<Self>
fn py_try_from(_py: Python<'_>, item: &PyPrefixOperator) -> PyResult<Self>
source§impl PyTypeInfo for PyPrefixOperator
impl PyTypeInfo for PyPrefixOperator
§type AsRefTarget = PyCell<PyPrefixOperator>
type AsRefTarget = PyCell<PyPrefixOperator>
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 PyPrefixOperator
impl PyWrapper for PyPrefixOperator
source§impl ToPyObject for PyPrefixOperator
impl ToPyObject for PyPrefixOperator
source§impl<'a> ToPython<PyPrefixOperator> for &'a PrefixOperator
impl<'a> ToPython<PyPrefixOperator> for &'a PrefixOperator
source§impl ToPython<PyPrefixOperator> for PrefixOperator
impl ToPython<PyPrefixOperator> for PrefixOperator
impl Copy for PyPrefixOperator
impl Eq for PyPrefixOperator
impl StructuralEq for PyPrefixOperator
impl StructuralPartialEq for PyPrefixOperator
Auto Trait Implementations§
impl RefUnwindSafe for PyPrefixOperator
impl Send for PyPrefixOperator
impl Sync for PyPrefixOperator
impl Unpin for PyPrefixOperator
impl UnwindSafe for PyPrefixOperator
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 Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.