pub struct RFlags(/* private fields */);
Implementations§
source§impl RFlags
impl RFlags
sourcepub const fn with_carry(self, value: bool) -> Self
pub const fn with_carry(self, value: bool) -> Self
Bits: 0..1
sourcepub const fn with_parity(self, value: bool) -> Self
pub const fn with_parity(self, value: bool) -> Self
Bits: 2..3
sourcepub fn set_parity(&mut self, value: bool)
pub fn set_parity(&mut self, value: bool)
Bits: 2..3
sourcepub const fn with_adjust(self, value: bool) -> Self
pub const fn with_adjust(self, value: bool) -> Self
Bits: 4..5
sourcepub fn set_adjust(&mut self, value: bool)
pub fn set_adjust(&mut self, value: bool)
Bits: 4..5
sourcepub const fn interrupt_enable(&self) -> bool
pub const fn interrupt_enable(&self) -> bool
Bits: 9..10
sourcepub const fn with_interrupt_enable(self, value: bool) -> Self
pub const fn with_interrupt_enable(self, value: bool) -> Self
Bits: 9..10
sourcepub fn set_interrupt_enable(&mut self, value: bool)
pub fn set_interrupt_enable(&mut self, value: bool)
Bits: 9..10
sourcepub const fn with_direction(self, value: bool) -> Self
pub const fn with_direction(self, value: bool) -> Self
Bits: 10..11
sourcepub fn set_direction(&mut self, value: bool)
pub fn set_direction(&mut self, value: bool)
Bits: 10..11
sourcepub const fn with_overflow(self, value: bool) -> Self
pub const fn with_overflow(self, value: bool) -> Self
Bits: 11..12
sourcepub fn set_overflow(&mut self, value: bool)
pub fn set_overflow(&mut self, value: bool)
Bits: 11..12
sourcepub const fn io_privilege_level(&self) -> u8
pub const fn io_privilege_level(&self) -> u8
Bits: 12..14
sourcepub const fn with_io_privilege_level(self, value: u8) -> Self
pub const fn with_io_privilege_level(self, value: u8) -> Self
Bits: 12..14
sourcepub fn set_io_privilege_level(&mut self, value: u8)
pub fn set_io_privilege_level(&mut self, value: u8)
Bits: 12..14
sourcepub const fn nested_task(&self) -> bool
pub const fn nested_task(&self) -> bool
Bits: 14..15
sourcepub const fn with_nested_task(self, value: bool) -> Self
pub const fn with_nested_task(self, value: bool) -> Self
Bits: 14..15
sourcepub fn set_nested_task(&mut self, value: bool)
pub fn set_nested_task(&mut self, value: bool)
Bits: 14..15
sourcepub const fn with_resume(self, value: bool) -> Self
pub const fn with_resume(self, value: bool) -> Self
Bits: 16..17
sourcepub fn set_resume(&mut self, value: bool)
pub fn set_resume(&mut self, value: bool)
Bits: 16..17
sourcepub const fn virtual_8086_mode(&self) -> bool
pub const fn virtual_8086_mode(&self) -> bool
Bits: 17..18
sourcepub const fn with_virtual_8086_mode(self, value: bool) -> Self
pub const fn with_virtual_8086_mode(self, value: bool) -> Self
Bits: 17..18
sourcepub fn set_virtual_8086_mode(&mut self, value: bool)
pub fn set_virtual_8086_mode(&mut self, value: bool)
Bits: 17..18
sourcepub const fn alignment_check(&self) -> bool
pub const fn alignment_check(&self) -> bool
Bits: 18..19
sourcepub const fn with_alignment_check(self, value: bool) -> Self
pub const fn with_alignment_check(self, value: bool) -> Self
Bits: 18..19
sourcepub fn set_alignment_check(&mut self, value: bool)
pub fn set_alignment_check(&mut self, value: bool)
Bits: 18..19
sourcepub const fn virtual_interrupt(&self) -> bool
pub const fn virtual_interrupt(&self) -> bool
Bits: 19..20
sourcepub const fn with_virtual_interrupt(self, value: bool) -> Self
pub const fn with_virtual_interrupt(self, value: bool) -> Self
Bits: 19..20
sourcepub fn set_virtual_interrupt(&mut self, value: bool)
pub fn set_virtual_interrupt(&mut self, value: bool)
Bits: 19..20
sourcepub const fn virtual_interrupt_pending(&self) -> bool
pub const fn virtual_interrupt_pending(&self) -> bool
Bits: 20..21
sourcepub const fn with_virtual_interrupt_pending(self, value: bool) -> Self
pub const fn with_virtual_interrupt_pending(self, value: bool) -> Self
Bits: 20..21
sourcepub fn set_virtual_interrupt_pending(&mut self, value: bool)
pub fn set_virtual_interrupt_pending(&mut self, value: bool)
Bits: 20..21
sourcepub const fn cpuid_allowed(&self) -> bool
pub const fn cpuid_allowed(&self) -> bool
Bits: 21..22
sourcepub const fn with_cpuid_allowed(self, value: bool) -> Self
pub const fn with_cpuid_allowed(self, value: bool) -> Self
Bits: 21..22
sourcepub fn set_cpuid_allowed(&mut self, value: bool)
pub fn set_cpuid_allowed(&mut self, value: bool)
Bits: 21..22
sourcepub const fn aes_key_schedule_loaded(&self) -> bool
pub const fn aes_key_schedule_loaded(&self) -> bool
Bits: 30..31
sourcepub const fn with_aes_key_schedule_loaded(self, value: bool) -> Self
pub const fn with_aes_key_schedule_loaded(self, value: bool) -> Self
Bits: 30..31
sourcepub fn set_aes_key_schedule_loaded(&mut self, value: bool)
pub fn set_aes_key_schedule_loaded(&mut self, value: bool)
Bits: 30..31
Trait Implementations§
source§impl<'a> Arbitrary<'a> for RFlags
impl<'a> Arbitrary<'a> for RFlags
source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read more§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moreimpl Copy for RFlags
impl StructuralPartialEq for RFlags
Auto Trait Implementations§
impl Freeze for RFlags
impl RefUnwindSafe for RFlags
impl Send for RFlags
impl Sync for RFlags
impl Unpin for RFlags
impl UnwindSafe for RFlags
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§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
)