pub struct InputClRegister {
pub index: u32,
pub bits: ClRegisterBits,
}Expand description
An input register for a classical expression.
Contains the input index as well as the bits that are part of the register.
Serialized as a list with two elements: the index and the bits.
Fields§
§index: u32The identifier for this register variable in the ClExpr::expr expression.
bits: ClRegisterBitsThe sequence of positions of bits comprising the register variable.
The indexes in this sequence refer to the bits in the ClExpr::bit_posn list.
Trait Implementations§
Source§impl Clone for InputClRegister
impl Clone for InputClRegister
Source§fn clone(&self) -> InputClRegister
fn clone(&self) -> InputClRegister
Returns a duplicate 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 InputClRegister
impl Debug for InputClRegister
Source§impl Default for InputClRegister
impl Default for InputClRegister
Source§fn default() -> InputClRegister
fn default() -> InputClRegister
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputClRegister
impl<'de> Deserialize<'de> for InputClRegister
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InputClRegister
impl PartialEq for InputClRegister
Source§impl Serialize for InputClRegister
impl Serialize for InputClRegister
impl StructuralPartialEq for InputClRegister
Auto Trait Implementations§
impl Freeze for InputClRegister
impl RefUnwindSafe for InputClRegister
impl Send for InputClRegister
impl Sync for InputClRegister
impl Unpin for InputClRegister
impl UnwindSafe for InputClRegister
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