pub struct RFlags(/* private fields */);
Implementations§
Source§impl RFlags
impl RFlags
Sourcepub const fn with_carry_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_carry_checked(self, value: bool) -> Result<Self, ()>
Bits: 0..1
Sourcepub const fn with_carry(self, value: bool) -> Self
pub const fn with_carry(self, value: bool) -> Self
Bits: 0..1
Sourcepub const fn reserved_must_be_1(&self) -> bool
pub const fn reserved_must_be_1(&self) -> bool
Bits: 1..2
Sourcepub const fn with_reserved_must_be_1_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_reserved_must_be_1_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 1..2
Sourcepub const fn with_reserved_must_be_1(self, value: bool) -> Self
pub const fn with_reserved_must_be_1(self, value: bool) -> Self
Bits: 1..2
Sourcepub const fn set_reserved_must_be_1(&mut self, value: bool)
pub const fn set_reserved_must_be_1(&mut self, value: bool)
Bits: 1..2
Sourcepub const fn set_reserved_must_be_1_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_reserved_must_be_1_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 1..2
Sourcepub const fn with_parity_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_parity_checked(self, value: bool) -> Result<Self, ()>
Bits: 2..3
Sourcepub const fn with_parity(self, value: bool) -> Self
pub const fn with_parity(self, value: bool) -> Self
Bits: 2..3
Sourcepub const fn set_parity(&mut self, value: bool)
pub const fn set_parity(&mut self, value: bool)
Bits: 2..3
Sourcepub const fn with_adjust_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_adjust_checked(self, value: bool) -> Result<Self, ()>
Bits: 4..5
Sourcepub const fn with_adjust(self, value: bool) -> Self
pub const fn with_adjust(self, value: bool) -> Self
Bits: 4..5
Sourcepub const fn set_adjust(&mut self, value: bool)
pub const fn set_adjust(&mut self, value: bool)
Bits: 4..5
Sourcepub const fn with_zero_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_zero_checked(self, value: bool) -> Result<Self, ()>
Bits: 6..7
Sourcepub const fn with_sign_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_sign_checked(self, value: bool) -> Result<Self, ()>
Bits: 7..8
Sourcepub const fn with_trap_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_trap_checked(self, value: bool) -> Result<Self, ()>
Bits: 8..9
Sourcepub const fn interrupt_enable(&self) -> bool
pub const fn interrupt_enable(&self) -> bool
Bits: 9..10
Sourcepub const fn with_interrupt_enable_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_interrupt_enable_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_interrupt_enable(&mut self, value: bool)
pub const fn set_interrupt_enable(&mut self, value: bool)
Bits: 9..10
Sourcepub const fn set_interrupt_enable_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_interrupt_enable_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 9..10
Sourcepub const fn with_direction_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_direction_checked(self, value: bool) -> Result<Self, ()>
Bits: 10..11
Sourcepub const fn with_direction(self, value: bool) -> Self
pub const fn with_direction(self, value: bool) -> Self
Bits: 10..11
Sourcepub const fn set_direction(&mut self, value: bool)
pub const fn set_direction(&mut self, value: bool)
Bits: 10..11
Sourcepub const fn with_overflow_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_overflow_checked(self, value: bool) -> Result<Self, ()>
Bits: 11..12
Sourcepub const fn with_overflow(self, value: bool) -> Self
pub const fn with_overflow(self, value: bool) -> Self
Bits: 11..12
Sourcepub const fn set_overflow(&mut self, value: bool)
pub const 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_checked(
self,
value: u8,
) -> Result<Self, ()>
pub const fn with_io_privilege_level_checked( self, value: u8, ) -> Result<Self, ()>
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 const fn set_io_privilege_level(&mut self, value: u8)
pub const fn set_io_privilege_level(&mut self, value: u8)
Bits: 12..14
Sourcepub const fn set_io_privilege_level_checked(
&mut self,
value: u8,
) -> Result<(), ()>
pub const fn set_io_privilege_level_checked( &mut self, value: u8, ) -> Result<(), ()>
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_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_nested_task_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_nested_task(&mut self, value: bool)
pub const fn set_nested_task(&mut self, value: bool)
Bits: 14..15
Sourcepub const fn with_mode_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_mode_checked(self, value: bool) -> Result<Self, ()>
Bits: 15..16
Sourcepub const fn with_resume_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_resume_checked(self, value: bool) -> Result<Self, ()>
Bits: 16..17
Sourcepub const fn with_resume(self, value: bool) -> Self
pub const fn with_resume(self, value: bool) -> Self
Bits: 16..17
Sourcepub const fn set_resume(&mut self, value: bool)
pub const 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_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_virtual_8086_mode_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_virtual_8086_mode(&mut self, value: bool)
pub const fn set_virtual_8086_mode(&mut self, value: bool)
Bits: 17..18
Sourcepub const fn set_virtual_8086_mode_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_virtual_8086_mode_checked( &mut self, value: bool, ) -> Result<(), ()>
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_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_alignment_check_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_alignment_check(&mut self, value: bool)
pub const fn set_alignment_check(&mut self, value: bool)
Bits: 18..19
Sourcepub const fn set_alignment_check_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_alignment_check_checked( &mut self, value: bool, ) -> Result<(), ()>
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_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_virtual_interrupt_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_virtual_interrupt(&mut self, value: bool)
pub const fn set_virtual_interrupt(&mut self, value: bool)
Bits: 19..20
Sourcepub const fn set_virtual_interrupt_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_virtual_interrupt_checked( &mut self, value: bool, ) -> Result<(), ()>
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_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_virtual_interrupt_pending_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_virtual_interrupt_pending(&mut self, value: bool)
pub const fn set_virtual_interrupt_pending(&mut self, value: bool)
Bits: 20..21
Sourcepub const fn set_virtual_interrupt_pending_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_virtual_interrupt_pending_checked( &mut self, value: bool, ) -> Result<(), ()>
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_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_cpuid_allowed_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_cpuid_allowed(&mut self, value: bool)
pub const 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_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_aes_key_schedule_loaded_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_aes_key_schedule_loaded(&mut self, value: bool)
pub const 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>
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>
Self
from the entirety of the given
unstructured data. Read more