Struct quil::instruction::PyInstruction
source · pub struct PyInstruction(/* private fields */);Implementations§
source§impl PyInstruction
impl PyInstruction
pub fn from_arithmetic(py: Python<'_>, inner: PyArithmetic) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_binary_logic(py: Python<'_>, inner: PyBinaryLogic) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_calibration_definition( py: Python<'_>, inner: PyCalibration ) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_capture(py: Python<'_>, inner: PyCapture) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_circuit_definition( py: Python<'_>, inner: PyCircuitDefinition ) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_convert(py: Python<'_>, inner: PyConvert) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_comparison(py: Python<'_>, inner: PyComparison) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_declaration(py: Python<'_>, inner: PyDeclaration) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_delay(py: Python<'_>, inner: PyDelay) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_exchange(py: Python<'_>, inner: PyExchange) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_fence(py: Python<'_>, inner: PyFence) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_frame_definition( py: Python<'_>, inner: PyFrameDefinition ) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_gate_definition( py: Python<'_>, inner: PyGateDefinition ) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
source§impl PyInstruction
impl PyInstruction
pub fn from_include(py: Python<'_>, inner: PyInclude) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_jump_when(py: Python<'_>, inner: PyJumpWhen) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_jump_unless(py: Python<'_>, inner: PyJumpUnless) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_label(py: Python<'_>, inner: PyLabel) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_measure_calibration_definition( py: Python<'_>, inner: PyMeasureCalibrationDefinition ) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_measurement(py: Python<'_>, inner: PyMeasurement) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
source§impl PyInstruction
impl PyInstruction
pub fn from_pragma(py: Python<'_>, inner: PyPragma) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_pulse(py: Python<'_>, inner: PyPulse) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_raw_capture(py: Python<'_>, inner: PyRawCapture) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_reset(py: Python<'_>, inner: PyReset) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_set_frequency( py: Python<'_>, inner: PySetFrequency ) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_set_phase(py: Python<'_>, inner: PySetPhase) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_set_scale(py: Python<'_>, inner: PySetScale) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_shift_frequency( py: Python<'_>, inner: PyShiftFrequency ) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_shift_phase(py: Python<'_>, inner: PyShiftPhase) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_store(py: Python<'_>, inner: PyStore) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_swap_phases(py: Python<'_>, inner: PySwapPhases) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_unary_logic(py: Python<'_>, inner: PyUnaryLogic) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
pub fn from_waveform_definition( py: Python<'_>, inner: PyWaveformDefinition ) -> PyResult<Self>
source§impl PyInstruction
impl PyInstruction
source§impl PyInstruction
impl PyInstruction
source§impl PyInstruction
impl PyInstruction
source§impl PyInstruction
impl PyInstruction
Trait Implementations§
source§impl AsMut<<PyInstruction as PyWrapper>::Inner> for PyInstruction
impl AsMut<<PyInstruction as PyWrapper>::Inner> for PyInstruction
source§impl AsRef<Instruction> for PyInstruction
impl AsRef<Instruction> for PyInstruction
source§fn as_ref(&self) -> &Instruction
fn as_ref(&self) -> &Instruction
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PyInstruction
impl Clone for PyInstruction
source§fn clone(&self) -> PyInstruction
fn clone(&self) -> PyInstruction
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 PyInstruction
impl Debug for PyInstruction
source§impl From<&Instruction> for PyInstruction
impl From<&Instruction> for PyInstruction
source§fn from(inner: &Instruction) -> Self
fn from(inner: &Instruction) -> Self
Converts to this type from the input type.
source§impl From<Instruction> for PyInstruction
impl From<Instruction> for PyInstruction
source§fn from(inner: Instruction) -> Self
fn from(inner: Instruction) -> Self
Converts to this type from the input type.
source§impl From<PyInstruction> for Instruction
impl From<PyInstruction> for Instruction
source§fn from(wrapper: PyInstruction) -> Self
fn from(wrapper: PyInstruction) -> Self
Converts to this type from the input type.
source§impl PartialEq for PyInstruction
impl PartialEq for PyInstruction
source§fn eq(&self, other: &PyInstruction) -> bool
fn eq(&self, other: &PyInstruction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PyClassImpl for PyInstruction
impl PyClassImpl for PyInstruction
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<PyInstruction>
type ThreadChecker = SendablePyClass<PyInstruction>
This handles following two situations: Read more
type Inventory = Pyo3MethodsInventoryForPyInstruction
§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<PyInstruction> for PyClassImplCollector<PyInstruction>
impl PyClassNewTextSignature<PyInstruction> for PyClassImplCollector<PyInstruction>
fn new_text_signature(self) -> Option<&'static str>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyInstruction
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyInstruction
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyInstruction
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyInstruction
source§impl PyTryFrom<PyAny> for PyInstruction
impl PyTryFrom<PyAny> for PyInstruction
source§impl PyTryFrom<PyInstruction> for Instruction
impl PyTryFrom<PyInstruction> for Instruction
source§fn py_try_from(py: Python<'_>, item: &PyInstruction) -> PyResult<Self>
fn py_try_from(py: Python<'_>, item: &PyInstruction) -> PyResult<Self>
source§impl PyTryFrom<PyInstruction> for PyInstruction
impl PyTryFrom<PyInstruction> for PyInstruction
source§fn py_try_from(py: Python<'_>, item: &PyInstruction) -> PyResult<Self>
fn py_try_from(py: Python<'_>, item: &PyInstruction) -> PyResult<Self>
source§impl PyTypeInfo for PyInstruction
impl PyTypeInfo for PyInstruction
§type AsRefTarget = PyCell<PyInstruction>
type AsRefTarget = PyCell<PyInstruction>
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 PyInstruction
impl PyWrapper for PyInstruction
source§impl ToPyObject for PyInstruction
impl ToPyObject for PyInstruction
source§impl<'a> ToPython<PyInstruction> for &'a Instruction
impl<'a> ToPython<PyInstruction> for &'a Instruction
source§impl ToPython<PyInstruction> for Instruction
impl ToPython<PyInstruction> for Instruction
impl StructuralPartialEq for PyInstruction
Auto Trait Implementations§
impl RefUnwindSafe for PyInstruction
impl Send for PyInstruction
impl Sync for PyInstruction
impl Unpin for PyInstruction
impl UnwindSafe for PyInstruction
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