Struct osiris_process::register::state::OperationState
source · 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: WordShall be used to store the result of an arithmetic operation.
counter: WordShall be used to implement a for-next logic.
compare: i64Shall be used to implement A <=> B comparison logic,
flag_zero: boolShall be used to signal an operation resulting with 0 or an empty set,
flag_overflow: boolShall be used to signal an operation resulting with a numeric overflow,
Implementations§
Trait Implementations§
source§impl Clone for OperationState
impl Clone for OperationState
source§fn clone(&self) -> OperationState
fn clone(&self) -> OperationState
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 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