Enum quil::instruction::PyGateModifier
source · pub enum PyGateModifier {
Controlled,
Dagger,
Forked,
}Variants§
Implementations§
Trait Implementations§
source§impl AsRef<GateModifier> for PyGateModifier
impl AsRef<GateModifier> for PyGateModifier
source§fn as_ref(&self) -> &GateModifier
fn as_ref(&self) -> &GateModifier
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PyGateModifier
impl Clone for PyGateModifier
source§fn clone(&self) -> PyGateModifier
fn clone(&self) -> PyGateModifier
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 PyGateModifier
impl Debug for PyGateModifier
source§impl From<&GateModifier> for PyGateModifier
impl From<&GateModifier> for PyGateModifier
source§fn from(item: &GateModifier) -> Self
fn from(item: &GateModifier) -> Self
Converts to this type from the input type.
source§impl From<&PyGateModifier> for GateModifier
impl From<&PyGateModifier> for GateModifier
source§fn from(item: &PyGateModifier) -> Self
fn from(item: &PyGateModifier) -> Self
Converts to this type from the input type.
source§impl From<GateModifier> for PyGateModifier
impl From<GateModifier> for PyGateModifier
source§fn from(item: GateModifier) -> Self
fn from(item: GateModifier) -> Self
Converts to this type from the input type.
source§impl From<PyGateModifier> for GateModifier
impl From<PyGateModifier> for GateModifier
source§fn from(item: PyGateModifier) -> Self
fn from(item: PyGateModifier) -> Self
Converts to this type from the input type.
source§impl PartialEq for PyGateModifier
impl PartialEq for PyGateModifier
source§fn eq(&self, other: &PyGateModifier) -> bool
fn eq(&self, other: &PyGateModifier) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PyClassImpl for PyGateModifier
impl PyClassImpl for PyGateModifier
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<PyGateModifier>
type ThreadChecker = SendablePyClass<PyGateModifier>
This handles following two situations: Read more
type Inventory = Pyo3MethodsInventoryForPyGateModifier
§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 PyGateModifier
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyGateModifier
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyGateModifier
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyGateModifier
source§impl PyTryFrom<PyGateModifier> for GateModifier
impl PyTryFrom<PyGateModifier> for GateModifier
source§fn py_try_from(_py: Python<'_>, item: &PyGateModifier) -> PyResult<Self>
fn py_try_from(_py: Python<'_>, item: &PyGateModifier) -> PyResult<Self>
source§impl PyTypeInfo for PyGateModifier
impl PyTypeInfo for PyGateModifier
§type AsRefTarget = PyCell<PyGateModifier>
type AsRefTarget = PyCell<PyGateModifier>
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 PyGateModifier
impl PyWrapper for PyGateModifier
source§impl ToPyObject for PyGateModifier
impl ToPyObject for PyGateModifier
source§impl<'a> ToPython<PyGateModifier> for &'a GateModifier
impl<'a> ToPython<PyGateModifier> for &'a GateModifier
source§impl ToPython<PyGateModifier> for GateModifier
impl ToPython<PyGateModifier> for GateModifier
impl Copy for PyGateModifier
impl Eq for PyGateModifier
impl StructuralEq for PyGateModifier
impl StructuralPartialEq for PyGateModifier
Auto Trait Implementations§
impl RefUnwindSafe for PyGateModifier
impl Send for PyGateModifier
impl Sync for PyGateModifier
impl Unpin for PyGateModifier
impl UnwindSafe for PyGateModifier
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.