pub struct PyInstruction(/* private fields */);
Implementations§
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_arithmetic(py: Python<'_>, inner: PyArithmetic) -> PyResult<Self>
pub fn from_arithmetic(py: Python<'_>, inner: PyArithmetic) -> PyResult<Self>
The Python wrapper for Instruction::Arithmetic
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_binary_logic(py: Python<'_>, inner: PyBinaryLogic) -> PyResult<Self>
pub fn from_binary_logic(py: Python<'_>, inner: PyBinaryLogic) -> PyResult<Self>
The Python wrapper for Instruction::BinaryLogic
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_calibration_definition(
py: Python<'_>,
inner: PyCalibration,
) -> PyResult<Self>
pub fn from_calibration_definition( py: Python<'_>, inner: PyCalibration, ) -> PyResult<Self>
The Python wrapper for Instruction::CalibrationDefinition
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_call(py: Python<'_>, inner: PyCall) -> PyResult<Self>
pub fn from_call(py: Python<'_>, inner: PyCall) -> PyResult<Self>
The Python wrapper for Instruction::Call
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_capture(py: Python<'_>, inner: PyCapture) -> PyResult<Self>
pub fn from_capture(py: Python<'_>, inner: PyCapture) -> PyResult<Self>
The Python wrapper for Instruction::Capture
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_circuit_definition(
py: Python<'_>,
inner: PyCircuitDefinition,
) -> PyResult<Self>
pub fn from_circuit_definition( py: Python<'_>, inner: PyCircuitDefinition, ) -> PyResult<Self>
The Python wrapper for Instruction::CircuitDefinition
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_convert(py: Python<'_>, inner: PyConvert) -> PyResult<Self>
pub fn from_convert(py: Python<'_>, inner: PyConvert) -> PyResult<Self>
The Python wrapper for Instruction::Convert
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_comparison(py: Python<'_>, inner: PyComparison) -> PyResult<Self>
pub fn from_comparison(py: Python<'_>, inner: PyComparison) -> PyResult<Self>
The Python wrapper for Instruction::Comparison
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_declaration(py: Python<'_>, inner: PyDeclaration) -> PyResult<Self>
pub fn from_declaration(py: Python<'_>, inner: PyDeclaration) -> PyResult<Self>
The Python wrapper for Instruction::Declaration
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_delay(py: Python<'_>, inner: PyDelay) -> PyResult<Self>
pub fn from_delay(py: Python<'_>, inner: PyDelay) -> PyResult<Self>
The Python wrapper for Instruction::Delay
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_exchange(py: Python<'_>, inner: PyExchange) -> PyResult<Self>
pub fn from_exchange(py: Python<'_>, inner: PyExchange) -> PyResult<Self>
The Python wrapper for Instruction::Exchange
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_fence(py: Python<'_>, inner: PyFence) -> PyResult<Self>
pub fn from_fence(py: Python<'_>, inner: PyFence) -> PyResult<Self>
The Python wrapper for Instruction::Fence
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_frame_definition(
py: Python<'_>,
inner: PyFrameDefinition,
) -> PyResult<Self>
pub fn from_frame_definition( py: Python<'_>, inner: PyFrameDefinition, ) -> PyResult<Self>
The Python wrapper for Instruction::FrameDefinition
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_gate(py: Python<'_>, inner: PyGate) -> PyResult<Self>
pub fn from_gate(py: Python<'_>, inner: PyGate) -> PyResult<Self>
The Python wrapper for Instruction::Gate
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_gate_definition(
py: Python<'_>,
inner: PyGateDefinition,
) -> PyResult<Self>
pub fn from_gate_definition( py: Python<'_>, inner: PyGateDefinition, ) -> PyResult<Self>
The Python wrapper for Instruction::GateDefinition
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn new_halt() -> Self
pub fn new_halt() -> Self
Create a new PyInstruction
wrapping a Instruction::Halt
.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_include(py: Python<'_>, inner: PyInclude) -> PyResult<Self>
pub fn from_include(py: Python<'_>, inner: PyInclude) -> PyResult<Self>
The Python wrapper for Instruction::Include
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_jump(py: Python<'_>, inner: PyJump) -> PyResult<Self>
pub fn from_jump(py: Python<'_>, inner: PyJump) -> PyResult<Self>
The Python wrapper for Instruction::Jump
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_jump_when(py: Python<'_>, inner: PyJumpWhen) -> PyResult<Self>
pub fn from_jump_when(py: Python<'_>, inner: PyJumpWhen) -> PyResult<Self>
The Python wrapper for Instruction::JumpWhen
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_jump_unless(py: Python<'_>, inner: PyJumpUnless) -> PyResult<Self>
pub fn from_jump_unless(py: Python<'_>, inner: PyJumpUnless) -> PyResult<Self>
The Python wrapper for Instruction::JumpUnless
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_label(py: Python<'_>, inner: PyLabel) -> PyResult<Self>
pub fn from_label(py: Python<'_>, inner: PyLabel) -> PyResult<Self>
The Python wrapper for Instruction::Label
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_load(py: Python<'_>, inner: PyLoad) -> PyResult<Self>
pub fn from_load(py: Python<'_>, inner: PyLoad) -> PyResult<Self>
The Python wrapper for Instruction::Load
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_measure_calibration_definition(
py: Python<'_>,
inner: PyMeasureCalibrationDefinition,
) -> PyResult<Self>
pub fn from_measure_calibration_definition( py: Python<'_>, inner: PyMeasureCalibrationDefinition, ) -> PyResult<Self>
The Python wrapper for Instruction::MeasureCalibrationDefinition
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_measurement(py: Python<'_>, inner: PyMeasurement) -> PyResult<Self>
pub fn from_measurement(py: Python<'_>, inner: PyMeasurement) -> PyResult<Self>
The Python wrapper for Instruction::Measurement
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_move(py: Python<'_>, inner: PyMove) -> PyResult<Self>
pub fn from_move(py: Python<'_>, inner: PyMove) -> PyResult<Self>
The Python wrapper for Instruction::Move
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn new_nop() -> Self
pub fn new_nop() -> Self
Create a new PyInstruction
wrapping a Instruction::Nop
.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_pragma(py: Python<'_>, inner: PyPragma) -> PyResult<Self>
pub fn from_pragma(py: Python<'_>, inner: PyPragma) -> PyResult<Self>
The Python wrapper for Instruction::Pragma
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_pulse(py: Python<'_>, inner: PyPulse) -> PyResult<Self>
pub fn from_pulse(py: Python<'_>, inner: PyPulse) -> PyResult<Self>
The Python wrapper for Instruction::Pulse
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_raw_capture(py: Python<'_>, inner: PyRawCapture) -> PyResult<Self>
pub fn from_raw_capture(py: Python<'_>, inner: PyRawCapture) -> PyResult<Self>
The Python wrapper for Instruction::RawCapture
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_reset(py: Python<'_>, inner: PyReset) -> PyResult<Self>
pub fn from_reset(py: Python<'_>, inner: PyReset) -> PyResult<Self>
The Python wrapper for Instruction::Reset
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_set_frequency(
py: Python<'_>,
inner: PySetFrequency,
) -> PyResult<Self>
pub fn from_set_frequency( py: Python<'_>, inner: PySetFrequency, ) -> PyResult<Self>
The Python wrapper for Instruction::SetFrequency
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_set_phase(py: Python<'_>, inner: PySetPhase) -> PyResult<Self>
pub fn from_set_phase(py: Python<'_>, inner: PySetPhase) -> PyResult<Self>
The Python wrapper for Instruction::SetPhase
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_set_scale(py: Python<'_>, inner: PySetScale) -> PyResult<Self>
pub fn from_set_scale(py: Python<'_>, inner: PySetScale) -> PyResult<Self>
The Python wrapper for Instruction::SetScale
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_shift_frequency(
py: Python<'_>,
inner: PyShiftFrequency,
) -> PyResult<Self>
pub fn from_shift_frequency( py: Python<'_>, inner: PyShiftFrequency, ) -> PyResult<Self>
The Python wrapper for Instruction::ShiftFrequency
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_shift_phase(py: Python<'_>, inner: PyShiftPhase) -> PyResult<Self>
pub fn from_shift_phase(py: Python<'_>, inner: PyShiftPhase) -> PyResult<Self>
The Python wrapper for Instruction::ShiftPhase
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_store(py: Python<'_>, inner: PyStore) -> PyResult<Self>
pub fn from_store(py: Python<'_>, inner: PyStore) -> PyResult<Self>
The Python wrapper for Instruction::Store
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_swap_phases(py: Python<'_>, inner: PySwapPhases) -> PyResult<Self>
pub fn from_swap_phases(py: Python<'_>, inner: PySwapPhases) -> PyResult<Self>
The Python wrapper for Instruction::SwapPhases
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_unary_logic(py: Python<'_>, inner: PyUnaryLogic) -> PyResult<Self>
pub fn from_unary_logic(py: Python<'_>, inner: PyUnaryLogic) -> PyResult<Self>
The Python wrapper for Instruction::UnaryLogic
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn from_waveform_definition(
py: Python<'_>,
inner: PyWaveformDefinition,
) -> PyResult<Self>
pub fn from_waveform_definition( py: Python<'_>, inner: PyWaveformDefinition, ) -> PyResult<Self>
The Python wrapper for Instruction::WaveformDefinition
, creating a PyInstruction
and taking a Python argument.
Source§impl PyInstruction
impl PyInstruction
Sourcepub fn new_wait() -> Self
pub fn new_wait() -> Self
Create a new PyInstruction
wrapping a Instruction::Wait
.
Source§impl PyInstruction
impl PyInstruction
Source§impl PyInstruction
Implements __repr__
for Python in terms of the Rust
Debug
instance.
impl PyInstruction
Implements __repr__
for Python in terms of the Rust
Debug
instance.
Source§impl PyInstruction
impl PyInstruction
Source§impl PyInstruction
impl PyInstruction
pub fn __richcmp__( &self, py: Python<'_>, other: &Self, op: CompareOp, ) -> PyObject
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
Source§impl Clone for PyInstruction
impl Clone for PyInstruction
Source§fn clone(&self) -> PyInstruction
fn clone(&self) -> PyInstruction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
Source§impl From<Instruction> for PyInstruction
impl From<Instruction> for PyInstruction
Source§fn from(inner: Instruction) -> Self
fn from(inner: Instruction) -> Self
Source§impl From<PyInstruction> for Instruction
impl From<PyInstruction> for Instruction
Source§fn from(wrapper: PyInstruction) -> Self
fn from(wrapper: PyInstruction) -> Self
Source§impl PartialEq for PyInstruction
impl PartialEq for PyInstruction
Source§impl PyClass for PyInstruction
impl PyClass for PyInstruction
Source§impl PyClassImpl for PyInstruction
impl PyClassImpl for PyInstruction
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§type ThreadChecker = SendablePyClass<PyInstruction>
type ThreadChecker = SendablePyClass<PyInstruction>
type Inventory = Pyo3MethodsInventoryForPyInstruction
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
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
Source§type AsRefTarget = PyCell<PyInstruction>
type AsRefTarget = PyCell<PyInstruction>
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
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
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 Freeze for PyInstruction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> FromPyObject<'a> for T
impl<'a, T> FromPyObject<'a> for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§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
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.