pub enum MachineInitStrategy {
Unseeded,
Seeded {
seed: u64,
},
Known {
value: u16,
},
}
Expand description
Strategy used to initialize the reg_file
and mem
of the Simulator
.
These are used to set the initial state of the memory and registers, which will be treated as uninitialized until they are properly initialized by program code.
Variants§
Unseeded
Initializes each word randomly and non-deterministically.
Seeded
Initializes each word randomly and deterministically.
Known
Initializes each word to a known value.
Trait Implementations§
Source§impl Clone for MachineInitStrategy
impl Clone for MachineInitStrategy
Source§fn clone(&self) -> MachineInitStrategy
fn clone(&self) -> MachineInitStrategy
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 MachineInitStrategy
impl Debug for MachineInitStrategy
Source§impl Default for MachineInitStrategy
impl Default for MachineInitStrategy
Source§fn default() -> MachineInitStrategy
fn default() -> MachineInitStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for MachineInitStrategy
impl PartialEq for MachineInitStrategy
impl Copy for MachineInitStrategy
impl Eq for MachineInitStrategy
impl StructuralPartialEq for MachineInitStrategy
Auto Trait Implementations§
impl Freeze for MachineInitStrategy
impl RefUnwindSafe for MachineInitStrategy
impl Send for MachineInitStrategy
impl Sync for MachineInitStrategy
impl Unpin for MachineInitStrategy
impl UnwindSafe for MachineInitStrategy
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