Struct minidump::format::ContextFlagsX86
source · pub struct ContextFlagsX86(/* private fields */);
Expand description
Flags available for use in [CONTEXT_X86.context_flags
]
Implementations§
source§impl ContextFlagsX86
impl ContextFlagsX86
sourcepub const CONTEXT_X86_CONTROL: ContextFlagsX86 = _
pub const CONTEXT_X86_CONTROL: ContextFlagsX86 = _
Ebp, Eip, SegCs, EFlags, Esp, SegSs
sourcepub const CONTEXT_X86_INTEGER: ContextFlagsX86 = _
pub const CONTEXT_X86_INTEGER: ContextFlagsX86 = _
Edi, Esi, Ebx, Edx, Ecx, Eax
sourcepub const CONTEXT_X86_SEGMENTS: ContextFlagsX86 = _
pub const CONTEXT_X86_SEGMENTS: ContextFlagsX86 = _
SegDs, SegEs, SegFs, and SegGs
sourcepub const CONTEXT_X86_FLOATING_POINT: ContextFlagsX86 = _
pub const CONTEXT_X86_FLOATING_POINT: ContextFlagsX86 = _
Fpcr, Fpsr, Fptag, Fpioff, Fpisel, Fpdoff, Fpdsel, Mxcsr, Mxcsr_mask, Xmm0-Xmm7
sourcepub const CONTEXT_X86_DEBUG_REGISTERS: ContextFlagsX86 = _
pub const CONTEXT_X86_DEBUG_REGISTERS: ContextFlagsX86 = _
Dr0-Dr3 and Dr6-Dr7
pub const CONTEXT_X86_EXTENDED_REGISTERS: ContextFlagsX86 = _
pub const CONTEXT_X86_XSTATE: ContextFlagsX86 = _
pub const CONTEXT_X86_FULL: ContextFlagsX86 = _
pub const CONTEXT_X86_ALL: ContextFlagsX86 = _
source§impl ContextFlagsX86
impl ContextFlagsX86
sourcepub const fn empty() -> ContextFlagsX86
pub const fn empty() -> ContextFlagsX86
Get a flags value with all bits unset.
sourcepub const fn all() -> ContextFlagsX86
pub const fn all() -> ContextFlagsX86
Get a flags value with all known bits set.
sourcepub const fn bits(&self) -> u32
pub const fn bits(&self) -> u32
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
sourcepub const fn from_bits(bits: u32) -> Option<ContextFlagsX86>
pub const fn from_bits(bits: u32) -> Option<ContextFlagsX86>
Convert from a bits value.
This method will return None
if any unknown bits are set.
sourcepub const fn from_bits_truncate(bits: u32) -> ContextFlagsX86
pub const fn from_bits_truncate(bits: u32) -> ContextFlagsX86
Convert from a bits value, unsetting any unknown bits.
sourcepub const fn from_bits_retain(bits: u32) -> ContextFlagsX86
pub const fn from_bits_retain(bits: u32) -> ContextFlagsX86
Convert from a bits value exactly.
sourcepub fn from_name(name: &str) -> Option<ContextFlagsX86>
pub fn from_name(name: &str) -> Option<ContextFlagsX86>
Get a flags value with the bits of a flag with the given name set.
This method will return None
if name
is empty or doesn’t
correspond to any named flag.
sourcepub const fn intersects(&self, other: ContextFlagsX86) -> bool
pub const fn intersects(&self, other: ContextFlagsX86) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
sourcepub const fn contains(&self, other: ContextFlagsX86) -> bool
pub const fn contains(&self, other: ContextFlagsX86) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
sourcepub fn insert(&mut self, other: ContextFlagsX86)
pub fn insert(&mut self, other: ContextFlagsX86)
The bitwise or (|
) of the bits in two flags values.
sourcepub fn remove(&mut self, other: ContextFlagsX86)
pub fn remove(&mut self, other: ContextFlagsX86)
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
remove
won’t truncate other
, but the !
operator will.
sourcepub fn toggle(&mut self, other: ContextFlagsX86)
pub fn toggle(&mut self, other: ContextFlagsX86)
The bitwise exclusive-or (^
) of the bits in two flags values.
sourcepub fn set(&mut self, other: ContextFlagsX86, value: bool)
pub fn set(&mut self, other: ContextFlagsX86, value: bool)
Call insert
when value
is true
or remove
when value
is false
.
sourcepub const fn intersection(self, other: ContextFlagsX86) -> ContextFlagsX86
pub const fn intersection(self, other: ContextFlagsX86) -> ContextFlagsX86
The bitwise and (&
) of the bits in two flags values.
sourcepub const fn union(self, other: ContextFlagsX86) -> ContextFlagsX86
pub const fn union(self, other: ContextFlagsX86) -> ContextFlagsX86
The bitwise or (|
) of the bits in two flags values.
sourcepub const fn difference(self, other: ContextFlagsX86) -> ContextFlagsX86
pub const fn difference(self, other: ContextFlagsX86) -> ContextFlagsX86
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
difference
won’t truncate other
, but the !
operator will.
sourcepub const fn symmetric_difference(
self,
other: ContextFlagsX86
) -> ContextFlagsX86
pub const fn symmetric_difference( self, other: ContextFlagsX86 ) -> ContextFlagsX86
The bitwise exclusive-or (^
) of the bits in two flags values.
sourcepub const fn complement(self) -> ContextFlagsX86
pub const fn complement(self) -> ContextFlagsX86
The bitwise negation (!
) of the bits in a flags value, truncating the result.
source§impl ContextFlagsX86
impl ContextFlagsX86
sourcepub const fn iter(&self) -> Iter<ContextFlagsX86>
pub const fn iter(&self) -> Iter<ContextFlagsX86>
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
sourcepub const fn iter_names(&self) -> IterNames<ContextFlagsX86>
pub const fn iter_names(&self) -> IterNames<ContextFlagsX86>
Yield a set of contained named flags values.
This method is like iter
, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
Trait Implementations§
source§impl Binary for ContextFlagsX86
impl Binary for ContextFlagsX86
source§impl BitAnd for ContextFlagsX86
impl BitAnd for ContextFlagsX86
source§fn bitand(self, other: ContextFlagsX86) -> ContextFlagsX86
fn bitand(self, other: ContextFlagsX86) -> ContextFlagsX86
The bitwise and (&
) of the bits in two flags values.
§type Output = ContextFlagsX86
type Output = ContextFlagsX86
&
operator.source§impl BitAndAssign for ContextFlagsX86
impl BitAndAssign for ContextFlagsX86
source§fn bitand_assign(&mut self, other: ContextFlagsX86)
fn bitand_assign(&mut self, other: ContextFlagsX86)
The bitwise and (&
) of the bits in two flags values.
source§impl BitOr for ContextFlagsX86
impl BitOr for ContextFlagsX86
source§fn bitor(self, other: ContextFlagsX86) -> ContextFlagsX86
fn bitor(self, other: ContextFlagsX86) -> ContextFlagsX86
The bitwise or (|
) of the bits in two flags values.
§type Output = ContextFlagsX86
type Output = ContextFlagsX86
|
operator.source§impl BitOrAssign for ContextFlagsX86
impl BitOrAssign for ContextFlagsX86
source§fn bitor_assign(&mut self, other: ContextFlagsX86)
fn bitor_assign(&mut self, other: ContextFlagsX86)
The bitwise or (|
) of the bits in two flags values.
source§impl BitXor for ContextFlagsX86
impl BitXor for ContextFlagsX86
source§fn bitxor(self, other: ContextFlagsX86) -> ContextFlagsX86
fn bitxor(self, other: ContextFlagsX86) -> ContextFlagsX86
The bitwise exclusive-or (^
) of the bits in two flags values.
§type Output = ContextFlagsX86
type Output = ContextFlagsX86
^
operator.source§impl BitXorAssign for ContextFlagsX86
impl BitXorAssign for ContextFlagsX86
source§fn bitxor_assign(&mut self, other: ContextFlagsX86)
fn bitxor_assign(&mut self, other: ContextFlagsX86)
The bitwise exclusive-or (^
) of the bits in two flags values.
source§impl Clone for ContextFlagsX86
impl Clone for ContextFlagsX86
source§fn clone(&self) -> ContextFlagsX86
fn clone(&self) -> ContextFlagsX86
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContextFlagsX86
impl Debug for ContextFlagsX86
source§impl Extend<ContextFlagsX86> for ContextFlagsX86
impl Extend<ContextFlagsX86> for ContextFlagsX86
source§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = ContextFlagsX86>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = ContextFlagsX86>,
The bitwise or (|
) of the bits in each flags value.
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)source§impl Flags for ContextFlagsX86
impl Flags for ContextFlagsX86
source§const FLAGS: &'static [Flag<ContextFlagsX86>] = _
const FLAGS: &'static [Flag<ContextFlagsX86>] = _
source§fn from_bits_retain(bits: u32) -> ContextFlagsX86
fn from_bits_retain(bits: u32) -> ContextFlagsX86
source§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
source§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
source§fn iter_names(&self) -> IterNames<Self>
fn iter_names(&self) -> IterNames<Self>
source§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
source§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
source§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|
) of the bits in two flags values.source§fn remove(&mut self, other: Self)where
Self: Sized,
fn remove(&mut self, other: Self)where
Self: Sized,
&!
). Read moresource§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^
) of the bits in two flags values.source§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&
) of the bits in two flags values.source§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
&!
). Read moresource§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^
) of the bits in two flags values.source§fn complement(self) -> Self
fn complement(self) -> Self
!
) of the bits in a flags value, truncating the result.source§impl FromIterator<ContextFlagsX86> for ContextFlagsX86
impl FromIterator<ContextFlagsX86> for ContextFlagsX86
source§fn from_iter<T>(iterator: T) -> ContextFlagsX86where
T: IntoIterator<Item = ContextFlagsX86>,
fn from_iter<T>(iterator: T) -> ContextFlagsX86where
T: IntoIterator<Item = ContextFlagsX86>,
The bitwise or (|
) of the bits in each flags value.
source§impl IntoIterator for ContextFlagsX86
impl IntoIterator for ContextFlagsX86
§type Item = ContextFlagsX86
type Item = ContextFlagsX86
§type IntoIter = Iter<ContextFlagsX86>
type IntoIter = Iter<ContextFlagsX86>
source§fn into_iter(self) -> <ContextFlagsX86 as IntoIterator>::IntoIter
fn into_iter(self) -> <ContextFlagsX86 as IntoIterator>::IntoIter
source§impl LowerHex for ContextFlagsX86
impl LowerHex for ContextFlagsX86
source§impl Not for ContextFlagsX86
impl Not for ContextFlagsX86
source§fn not(self) -> ContextFlagsX86
fn not(self) -> ContextFlagsX86
The bitwise negation (!
) of the bits in a flags value, truncating the result.
§type Output = ContextFlagsX86
type Output = ContextFlagsX86
!
operator.source§impl Octal for ContextFlagsX86
impl Octal for ContextFlagsX86
source§impl PartialEq for ContextFlagsX86
impl PartialEq for ContextFlagsX86
source§fn eq(&self, other: &ContextFlagsX86) -> bool
fn eq(&self, other: &ContextFlagsX86) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Sub for ContextFlagsX86
impl Sub for ContextFlagsX86
source§fn sub(self, other: ContextFlagsX86) -> ContextFlagsX86
fn sub(self, other: ContextFlagsX86) -> ContextFlagsX86
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
difference
won’t truncate other
, but the !
operator will.
§type Output = ContextFlagsX86
type Output = ContextFlagsX86
-
operator.source§impl SubAssign for ContextFlagsX86
impl SubAssign for ContextFlagsX86
source§fn sub_assign(&mut self, other: ContextFlagsX86)
fn sub_assign(&mut self, other: ContextFlagsX86)
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
difference
won’t truncate other
, but the !
operator will.