pub struct OperationState {
pub result: Word,
pub counter: Word,
pub compare: i64,
pub flag_zero: bool,
pub flag_overflow: bool,
}
Expand description
The state of an operation.
Fields§
§result: Word
Shall be used to store the result of an arithmetic operation.
counter: Word
Shall be used to implement a for-next logic.
compare: i64
Shall be used to implement A <=> B comparison logic,
flag_zero: bool
Shall be used to signal an operation resulting with 0 or an empty set,
flag_overflow: bool
Shall be used to signal an operation resulting with a numeric overflow,
Implementations§
Source§impl OperationState
impl OperationState
Sourcepub fn reset_arithmetic(&mut self)
pub fn reset_arithmetic(&mut self)
Reset the arithmetic operation state.
Fields set :
- result
- flag_zero
- flag_overflow
Trait Implementations§
Source§impl Clone for OperationState
impl Clone for OperationState
Source§fn clone(&self) -> OperationState
fn clone(&self) -> OperationState
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 OperationState
impl Debug for OperationState
Source§impl Default for OperationState
impl Default for OperationState
Source§fn default() -> OperationState
fn default() -> OperationState
Returns the “default value” for a type. Read more
impl Copy for OperationState
Auto Trait Implementations§
impl Freeze for OperationState
impl RefUnwindSafe for OperationState
impl Send for OperationState
impl Sync for OperationState
impl Unpin for OperationState
impl UnwindSafe for OperationState
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