Struct lc3_ensemble::sim::mem::MemAccessCtx
source · pub struct MemAccessCtx {
pub privileged: bool,
pub strict: bool,
}Expand description
Context behind a memory access.
This struct is used by Mem::read and Mem::write to perform checks against memory accesses.
A default memory access context for the given simulator can be constructed with super::Simulator::default_mem_ctx.
Fields§
§privileged: boolWhether this access is privileged (false = user, true = supervisor).
strict: boolWhether writes to memory should follow strict rules (no writing partially or fully uninitialized data).
This does not affect Mem::read.
Trait Implementations§
source§impl Clone for MemAccessCtx
impl Clone for MemAccessCtx
source§fn clone(&self) -> MemAccessCtx
fn clone(&self) -> MemAccessCtx
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 moreimpl Copy for MemAccessCtx
Auto Trait Implementations§
impl Freeze for MemAccessCtx
impl RefUnwindSafe for MemAccessCtx
impl Send for MemAccessCtx
impl Sync for MemAccessCtx
impl Unpin for MemAccessCtx
impl UnwindSafe for MemAccessCtx
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