Enum lc3_ensemble::sim::mem::MachineInitStrategy
source · 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 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 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
source§fn eq(&self, other: &MachineInitStrategy) -> bool
fn eq(&self, other: &MachineInitStrategy) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)