Enum lc3_ensemble::sim::WordCreateStrategy
source · pub enum WordCreateStrategy {
Unseeded,
Seeded {
seed: u64,
},
SeededFill {
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.
SeededFill
Generates a random value with the given seed and sets each word to that generated value.
Known
Initializes each word to a known value.
Trait Implementations§
source§impl Clone for WordCreateStrategy
impl Clone for WordCreateStrategy
source§fn clone(&self) -> WordCreateStrategy
fn clone(&self) -> WordCreateStrategy
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 WordCreateStrategy
impl Debug for WordCreateStrategy
source§impl Default for WordCreateStrategy
impl Default for WordCreateStrategy
source§fn default() -> WordCreateStrategy
fn default() -> WordCreateStrategy
Returns the “default value” for a type. Read more
source§impl PartialEq for WordCreateStrategy
impl PartialEq for WordCreateStrategy
source§fn eq(&self, other: &WordCreateStrategy) -> bool
fn eq(&self, other: &WordCreateStrategy) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for WordCreateStrategy
impl Eq for WordCreateStrategy
impl StructuralPartialEq for WordCreateStrategy
Auto Trait Implementations§
impl Freeze for WordCreateStrategy
impl RefUnwindSafe for WordCreateStrategy
impl Send for WordCreateStrategy
impl Sync for WordCreateStrategy
impl Unpin for WordCreateStrategy
impl UnwindSafe for WordCreateStrategy
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