Struct minidump::format::ContextFlagsCpu
source · pub struct ContextFlagsCpu(/* private fields */);
Expand description
CPU type values in the context_flags
member of CONTEXT_
structs
This applies to the CONTEXT_ARM
, CONTEXT_PPC
, CONTEXT_MIPS
,
CONTEXT_AMD64
, CONTEXT_ARM64
, CONTEXT_PPC64
, CONTEXT_SPARC
and
CONTEXT_ARM64_OLD
structs.
Implementations§
source§impl ContextFlagsCpu
impl ContextFlagsCpu
pub const CONTEXT_IA64: ContextFlagsCpu = _
sourcepub const CONTEXT_SHX: ContextFlagsCpu = _
pub const CONTEXT_SHX: ContextFlagsCpu = _
Super-H, includes SH3, from winnt.h in the Windows CE 5.0 SDK
sourcepub const CONTEXT_ARM_OLD: ContextFlagsCpu = _
pub const CONTEXT_ARM_OLD: ContextFlagsCpu = _
From winnt.h in the Windows CE 5.0 SDK, no longer used
Originally used by Breakpad but changed after conflicts with other context flag bits.
sourcepub const CONTEXT_ALPHA: ContextFlagsCpu = _
pub const CONTEXT_ALPHA: ContextFlagsCpu = _
Alpha, from winnt.h in the Windows CE 5.0 SDK
pub const CONTEXT_AMD64: ContextFlagsCpu = _
pub const CONTEXT_ARM: ContextFlagsCpu = _
pub const CONTEXT_ARM64: ContextFlagsCpu = _
pub const CONTEXT_ARM64_OLD: ContextFlagsCpu = _
pub const CONTEXT_MIPS: ContextFlagsCpu = _
pub const CONTEXT_MIPS64: ContextFlagsCpu = _
pub const CONTEXT_PPC: ContextFlagsCpu = _
pub const CONTEXT_PPC64: ContextFlagsCpu = _
pub const CONTEXT_SPARC: ContextFlagsCpu = _
pub const CONTEXT_X86: ContextFlagsCpu = _
source§impl ContextFlagsCpu
impl ContextFlagsCpu
sourcepub const fn empty() -> ContextFlagsCpu
pub const fn empty() -> ContextFlagsCpu
Get a flags value with all bits unset.
sourcepub const fn all() -> ContextFlagsCpu
pub const fn all() -> ContextFlagsCpu
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<ContextFlagsCpu>
pub const fn from_bits(bits: u32) -> Option<ContextFlagsCpu>
Convert from a bits value.
This method will return None
if any unknown bits are set.
sourcepub const fn from_bits_truncate(bits: u32) -> ContextFlagsCpu
pub const fn from_bits_truncate(bits: u32) -> ContextFlagsCpu
Convert from a bits value, unsetting any unknown bits.
sourcepub const fn from_bits_retain(bits: u32) -> ContextFlagsCpu
pub const fn from_bits_retain(bits: u32) -> ContextFlagsCpu
Convert from a bits value exactly.
sourcepub fn from_name(name: &str) -> Option<ContextFlagsCpu>
pub fn from_name(name: &str) -> Option<ContextFlagsCpu>
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: ContextFlagsCpu) -> bool
pub const fn intersects(&self, other: ContextFlagsCpu) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
sourcepub const fn contains(&self, other: ContextFlagsCpu) -> bool
pub const fn contains(&self, other: ContextFlagsCpu) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
sourcepub fn insert(&mut self, other: ContextFlagsCpu)
pub fn insert(&mut self, other: ContextFlagsCpu)
The bitwise or (|
) of the bits in two flags values.
sourcepub fn remove(&mut self, other: ContextFlagsCpu)
pub fn remove(&mut self, other: ContextFlagsCpu)
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: ContextFlagsCpu)
pub fn toggle(&mut self, other: ContextFlagsCpu)
The bitwise exclusive-or (^
) of the bits in two flags values.
sourcepub fn set(&mut self, other: ContextFlagsCpu, value: bool)
pub fn set(&mut self, other: ContextFlagsCpu, value: bool)
Call insert
when value
is true
or remove
when value
is false
.
sourcepub const fn intersection(self, other: ContextFlagsCpu) -> ContextFlagsCpu
pub const fn intersection(self, other: ContextFlagsCpu) -> ContextFlagsCpu
The bitwise and (&
) of the bits in two flags values.
sourcepub const fn union(self, other: ContextFlagsCpu) -> ContextFlagsCpu
pub const fn union(self, other: ContextFlagsCpu) -> ContextFlagsCpu
The bitwise or (|
) of the bits in two flags values.
sourcepub const fn difference(self, other: ContextFlagsCpu) -> ContextFlagsCpu
pub const fn difference(self, other: ContextFlagsCpu) -> ContextFlagsCpu
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: ContextFlagsCpu
) -> ContextFlagsCpu
pub const fn symmetric_difference( self, other: ContextFlagsCpu ) -> ContextFlagsCpu
The bitwise exclusive-or (^
) of the bits in two flags values.
sourcepub const fn complement(self) -> ContextFlagsCpu
pub const fn complement(self) -> ContextFlagsCpu
The bitwise negation (!
) of the bits in a flags value, truncating the result.
source§impl ContextFlagsCpu
impl ContextFlagsCpu
sourcepub const fn iter(&self) -> Iter<ContextFlagsCpu>
pub const fn iter(&self) -> Iter<ContextFlagsCpu>
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<ContextFlagsCpu>
pub const fn iter_names(&self) -> IterNames<ContextFlagsCpu>
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.
source§impl ContextFlagsCpu
impl ContextFlagsCpu
sourcepub fn from_flags(flags: u32) -> ContextFlagsCpu
pub fn from_flags(flags: u32) -> ContextFlagsCpu
Populate a ContextFlagsCpu
with valid bits from flags
Trait Implementations§
source§impl Binary for ContextFlagsCpu
impl Binary for ContextFlagsCpu
source§impl BitAnd for ContextFlagsCpu
impl BitAnd for ContextFlagsCpu
source§fn bitand(self, other: ContextFlagsCpu) -> ContextFlagsCpu
fn bitand(self, other: ContextFlagsCpu) -> ContextFlagsCpu
The bitwise and (&
) of the bits in two flags values.
§type Output = ContextFlagsCpu
type Output = ContextFlagsCpu
&
operator.source§impl BitAndAssign for ContextFlagsCpu
impl BitAndAssign for ContextFlagsCpu
source§fn bitand_assign(&mut self, other: ContextFlagsCpu)
fn bitand_assign(&mut self, other: ContextFlagsCpu)
The bitwise and (&
) of the bits in two flags values.
source§impl BitOr for ContextFlagsCpu
impl BitOr for ContextFlagsCpu
source§fn bitor(self, other: ContextFlagsCpu) -> ContextFlagsCpu
fn bitor(self, other: ContextFlagsCpu) -> ContextFlagsCpu
The bitwise or (|
) of the bits in two flags values.
§type Output = ContextFlagsCpu
type Output = ContextFlagsCpu
|
operator.source§impl BitOrAssign for ContextFlagsCpu
impl BitOrAssign for ContextFlagsCpu
source§fn bitor_assign(&mut self, other: ContextFlagsCpu)
fn bitor_assign(&mut self, other: ContextFlagsCpu)
The bitwise or (|
) of the bits in two flags values.
source§impl BitXor for ContextFlagsCpu
impl BitXor for ContextFlagsCpu
source§fn bitxor(self, other: ContextFlagsCpu) -> ContextFlagsCpu
fn bitxor(self, other: ContextFlagsCpu) -> ContextFlagsCpu
The bitwise exclusive-or (^
) of the bits in two flags values.
§type Output = ContextFlagsCpu
type Output = ContextFlagsCpu
^
operator.source§impl BitXorAssign for ContextFlagsCpu
impl BitXorAssign for ContextFlagsCpu
source§fn bitxor_assign(&mut self, other: ContextFlagsCpu)
fn bitxor_assign(&mut self, other: ContextFlagsCpu)
The bitwise exclusive-or (^
) of the bits in two flags values.
source§impl Clone for ContextFlagsCpu
impl Clone for ContextFlagsCpu
source§fn clone(&self) -> ContextFlagsCpu
fn clone(&self) -> ContextFlagsCpu
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContextFlagsCpu
impl Debug for ContextFlagsCpu
source§impl Extend<ContextFlagsCpu> for ContextFlagsCpu
impl Extend<ContextFlagsCpu> for ContextFlagsCpu
source§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = ContextFlagsCpu>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = ContextFlagsCpu>,
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 ContextFlagsCpu
impl Flags for ContextFlagsCpu
source§const FLAGS: &'static [Flag<ContextFlagsCpu>] = _
const FLAGS: &'static [Flag<ContextFlagsCpu>] = _
source§fn from_bits_retain(bits: u32) -> ContextFlagsCpu
fn from_bits_retain(bits: u32) -> ContextFlagsCpu
§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
§fn iter_names(&self) -> IterNames<Self>
fn iter_names(&self) -> IterNames<Self>
§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
§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.§fn remove(&mut self, other: Self)where
Self: Sized,
fn remove(&mut self, other: Self)where
Self: Sized,
&!
). Read more§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.§fn set(&mut self, other: Self, value: bool)where
Self: Sized,
fn set(&mut self, other: Self, value: bool)where
Self: Sized,
Flags::insert
] when value
is true
or [Flags::remove
] when value
is false
.§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&
) of the bits in two flags values.§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
&!
). Read more§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^
) of the bits in two flags values.§fn complement(self) -> Self
fn complement(self) -> Self
!
) of the bits in a flags value, truncating the result.source§impl FromIterator<ContextFlagsCpu> for ContextFlagsCpu
impl FromIterator<ContextFlagsCpu> for ContextFlagsCpu
source§fn from_iter<T>(iterator: T) -> ContextFlagsCpuwhere
T: IntoIterator<Item = ContextFlagsCpu>,
fn from_iter<T>(iterator: T) -> ContextFlagsCpuwhere
T: IntoIterator<Item = ContextFlagsCpu>,
The bitwise or (|
) of the bits in each flags value.
source§impl IntoIterator for ContextFlagsCpu
impl IntoIterator for ContextFlagsCpu
§type Item = ContextFlagsCpu
type Item = ContextFlagsCpu
§type IntoIter = Iter<ContextFlagsCpu>
type IntoIter = Iter<ContextFlagsCpu>
source§fn into_iter(self) -> <ContextFlagsCpu as IntoIterator>::IntoIter
fn into_iter(self) -> <ContextFlagsCpu as IntoIterator>::IntoIter
source§impl LowerHex for ContextFlagsCpu
impl LowerHex for ContextFlagsCpu
source§impl Not for ContextFlagsCpu
impl Not for ContextFlagsCpu
source§fn not(self) -> ContextFlagsCpu
fn not(self) -> ContextFlagsCpu
The bitwise negation (!
) of the bits in a flags value, truncating the result.
§type Output = ContextFlagsCpu
type Output = ContextFlagsCpu
!
operator.source§impl Octal for ContextFlagsCpu
impl Octal for ContextFlagsCpu
source§impl PartialEq for ContextFlagsCpu
impl PartialEq for ContextFlagsCpu
source§fn eq(&self, other: &ContextFlagsCpu) -> bool
fn eq(&self, other: &ContextFlagsCpu) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Sub for ContextFlagsCpu
impl Sub for ContextFlagsCpu
source§fn sub(self, other: ContextFlagsCpu) -> ContextFlagsCpu
fn sub(self, other: ContextFlagsCpu) -> ContextFlagsCpu
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 = ContextFlagsCpu
type Output = ContextFlagsCpu
-
operator.source§impl SubAssign for ContextFlagsCpu
impl SubAssign for ContextFlagsCpu
source§fn sub_assign(&mut self, other: ContextFlagsCpu)
fn sub_assign(&mut self, other: ContextFlagsCpu)
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.