pub struct Access {
pub mode: Mode,
pub wide: bool,
pub erl: bool,
}Expand description
Everything outside the address itself that decides how it translates.
Fields§
§mode: ModeThe privilege mode.
wide: boolStatus.KX/SX/UX — for Access::mode, not all three.
One flag rather than three because only the current mode’s bit ever applies; carrying all three would invite reading the wrong one.
erl: boolStatus.ERL — makes KUSEG unmapped and uncached (UM §5.2.2).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Access
impl<'de> Deserialize<'de> for Access
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Access
impl Eq for Access
impl StructuralPartialEq for Access
Auto Trait Implementations§
impl Freeze for Access
impl RefUnwindSafe for Access
impl Send for Access
impl Sync for Access
impl Unpin for Access
impl UnsafeUnpin for Access
impl UnwindSafe for Access
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