#[non_exhaustive]pub enum ClVariable {
Register {
index: u32,
},
Bit {
index: u32,
},
}Expand description
A variable terminal argument in a classical expression operation.
The indices refer to the local identifiers in the super::ClExpr structure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Register
A register variable.
Fields
§
index: u32The register identifier in super::ClExpr::reg_posn.
Bit
A constant bit.
Fields
§
index: u32The bit identifier in super::ClExpr::bit_posn.
Trait Implementations§
Source§impl Clone for ClVariable
impl Clone for ClVariable
Source§fn clone(&self) -> ClVariable
fn clone(&self) -> ClVariable
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 ClVariable
impl Debug for ClVariable
Source§impl Default for ClVariable
impl Default for ClVariable
Source§impl<'de> Deserialize<'de> for ClVariable
impl<'de> Deserialize<'de> for ClVariable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ClVariable
impl Hash for ClVariable
Source§impl PartialEq for ClVariable
impl PartialEq for ClVariable
Source§impl Serialize for ClVariable
impl Serialize for ClVariable
impl StructuralPartialEq for ClVariable
Auto Trait Implementations§
impl Freeze for ClVariable
impl RefUnwindSafe for ClVariable
impl Send for ClVariable
impl Sync for ClVariable
impl Unpin for ClVariable
impl UnwindSafe for ClVariable
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