pub struct ContextFlagsArm64Old(/* private fields */);
Expand description
Flags available for use in [CONTEXT_ARM64_OLD.context_flags
]
Implementations§
source§impl ContextFlagsArm64Old
impl ContextFlagsArm64Old
sourcepub const CONTEXT_ARM64_OLD_INTEGER: ContextFlagsArm64Old = _
pub const CONTEXT_ARM64_OLD_INTEGER: ContextFlagsArm64Old = _
FP, LR, SP, PC, CPSR, and X0-X28
sourcepub const CONTEXT_ARM64_OLD_FLOATING_POINT: ContextFlagsArm64Old = _
pub const CONTEXT_ARM64_OLD_FLOATING_POINT: ContextFlagsArm64Old = _
Fpcr, Fpsr, D0-D31 (AKA Q0-Q31, AKA S0-S31)
pub const CONTEXT_ARM64_OLD_FULL: ContextFlagsArm64Old = _
pub const CONTEXT_ARM64_OLD_ALL: ContextFlagsArm64Old = _
source§impl ContextFlagsArm64Old
impl ContextFlagsArm64Old
sourcepub const fn empty() -> ContextFlagsArm64Old
pub const fn empty() -> ContextFlagsArm64Old
Get a flags value with all bits unset.
sourcepub const fn all() -> ContextFlagsArm64Old
pub const fn all() -> ContextFlagsArm64Old
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<ContextFlagsArm64Old>
pub const fn from_bits(bits: u32) -> Option<ContextFlagsArm64Old>
Convert from a bits value.
This method will return None
if any unknown bits are set.
sourcepub const fn from_bits_truncate(bits: u32) -> ContextFlagsArm64Old
pub const fn from_bits_truncate(bits: u32) -> ContextFlagsArm64Old
Convert from a bits value, unsetting any unknown bits.
sourcepub const fn from_bits_retain(bits: u32) -> ContextFlagsArm64Old
pub const fn from_bits_retain(bits: u32) -> ContextFlagsArm64Old
Convert from a bits value exactly.
sourcepub fn from_name(name: &str) -> Option<ContextFlagsArm64Old>
pub fn from_name(name: &str) -> Option<ContextFlagsArm64Old>
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: ContextFlagsArm64Old) -> bool
pub const fn intersects(&self, other: ContextFlagsArm64Old) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
sourcepub const fn contains(&self, other: ContextFlagsArm64Old) -> bool
pub const fn contains(&self, other: ContextFlagsArm64Old) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
sourcepub fn insert(&mut self, other: ContextFlagsArm64Old)
pub fn insert(&mut self, other: ContextFlagsArm64Old)
The bitwise or (|
) of the bits in two flags values.
sourcepub fn remove(&mut self, other: ContextFlagsArm64Old)
pub fn remove(&mut self, other: ContextFlagsArm64Old)
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: ContextFlagsArm64Old)
pub fn toggle(&mut self, other: ContextFlagsArm64Old)
The bitwise exclusive-or (^
) of the bits in two flags values.
sourcepub fn set(&mut self, other: ContextFlagsArm64Old, value: bool)
pub fn set(&mut self, other: ContextFlagsArm64Old, value: bool)
Call insert
when value
is true
or remove
when value
is false
.
sourcepub const fn intersection(
self,
other: ContextFlagsArm64Old,
) -> ContextFlagsArm64Old
pub const fn intersection( self, other: ContextFlagsArm64Old, ) -> ContextFlagsArm64Old
The bitwise and (&
) of the bits in two flags values.
sourcepub const fn union(self, other: ContextFlagsArm64Old) -> ContextFlagsArm64Old
pub const fn union(self, other: ContextFlagsArm64Old) -> ContextFlagsArm64Old
The bitwise or (|
) of the bits in two flags values.
sourcepub const fn difference(
self,
other: ContextFlagsArm64Old,
) -> ContextFlagsArm64Old
pub const fn difference( self, other: ContextFlagsArm64Old, ) -> ContextFlagsArm64Old
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: ContextFlagsArm64Old,
) -> ContextFlagsArm64Old
pub const fn symmetric_difference( self, other: ContextFlagsArm64Old, ) -> ContextFlagsArm64Old
The bitwise exclusive-or (^
) of the bits in two flags values.
sourcepub const fn complement(self) -> ContextFlagsArm64Old
pub const fn complement(self) -> ContextFlagsArm64Old
The bitwise negation (!
) of the bits in a flags value, truncating the result.
source§impl ContextFlagsArm64Old
impl ContextFlagsArm64Old
sourcepub const fn iter(&self) -> Iter<ContextFlagsArm64Old>
pub const fn iter(&self) -> Iter<ContextFlagsArm64Old>
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<ContextFlagsArm64Old>
pub const fn iter_names(&self) -> IterNames<ContextFlagsArm64Old>
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 ContextFlagsArm64Old
impl Binary for ContextFlagsArm64Old
source§impl BitAnd for ContextFlagsArm64Old
impl BitAnd for ContextFlagsArm64Old
source§fn bitand(self, other: ContextFlagsArm64Old) -> ContextFlagsArm64Old
fn bitand(self, other: ContextFlagsArm64Old) -> ContextFlagsArm64Old
The bitwise and (&
) of the bits in two flags values.
source§type Output = ContextFlagsArm64Old
type Output = ContextFlagsArm64Old
&
operator.source§impl BitAndAssign for ContextFlagsArm64Old
impl BitAndAssign for ContextFlagsArm64Old
source§fn bitand_assign(&mut self, other: ContextFlagsArm64Old)
fn bitand_assign(&mut self, other: ContextFlagsArm64Old)
The bitwise and (&
) of the bits in two flags values.
source§impl BitOr for ContextFlagsArm64Old
impl BitOr for ContextFlagsArm64Old
source§fn bitor(self, other: ContextFlagsArm64Old) -> ContextFlagsArm64Old
fn bitor(self, other: ContextFlagsArm64Old) -> ContextFlagsArm64Old
The bitwise or (|
) of the bits in two flags values.
source§type Output = ContextFlagsArm64Old
type Output = ContextFlagsArm64Old
|
operator.source§impl BitOrAssign for ContextFlagsArm64Old
impl BitOrAssign for ContextFlagsArm64Old
source§fn bitor_assign(&mut self, other: ContextFlagsArm64Old)
fn bitor_assign(&mut self, other: ContextFlagsArm64Old)
The bitwise or (|
) of the bits in two flags values.
source§impl BitXor for ContextFlagsArm64Old
impl BitXor for ContextFlagsArm64Old
source§fn bitxor(self, other: ContextFlagsArm64Old) -> ContextFlagsArm64Old
fn bitxor(self, other: ContextFlagsArm64Old) -> ContextFlagsArm64Old
The bitwise exclusive-or (^
) of the bits in two flags values.
source§type Output = ContextFlagsArm64Old
type Output = ContextFlagsArm64Old
^
operator.source§impl BitXorAssign for ContextFlagsArm64Old
impl BitXorAssign for ContextFlagsArm64Old
source§fn bitxor_assign(&mut self, other: ContextFlagsArm64Old)
fn bitxor_assign(&mut self, other: ContextFlagsArm64Old)
The bitwise exclusive-or (^
) of the bits in two flags values.
source§impl Clone for ContextFlagsArm64Old
impl Clone for ContextFlagsArm64Old
source§fn clone(&self) -> ContextFlagsArm64Old
fn clone(&self) -> ContextFlagsArm64Old
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContextFlagsArm64Old
impl Debug for ContextFlagsArm64Old
source§impl Extend<ContextFlagsArm64Old> for ContextFlagsArm64Old
impl Extend<ContextFlagsArm64Old> for ContextFlagsArm64Old
source§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = ContextFlagsArm64Old>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = ContextFlagsArm64Old>,
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 ContextFlagsArm64Old
impl Flags for ContextFlagsArm64Old
source§const FLAGS: &'static [Flag<ContextFlagsArm64Old>] = _
const FLAGS: &'static [Flag<ContextFlagsArm64Old>] = _
source§fn from_bits_retain(bits: u32) -> ContextFlagsArm64Old
fn from_bits_retain(bits: u32) -> ContextFlagsArm64Old
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<ContextFlagsArm64Old> for ContextFlagsArm64Old
impl FromIterator<ContextFlagsArm64Old> for ContextFlagsArm64Old
source§fn from_iter<T>(iterator: T) -> ContextFlagsArm64Oldwhere
T: IntoIterator<Item = ContextFlagsArm64Old>,
fn from_iter<T>(iterator: T) -> ContextFlagsArm64Oldwhere
T: IntoIterator<Item = ContextFlagsArm64Old>,
The bitwise or (|
) of the bits in each flags value.
source§impl IntoIterator for ContextFlagsArm64Old
impl IntoIterator for ContextFlagsArm64Old
source§type Item = ContextFlagsArm64Old
type Item = ContextFlagsArm64Old
source§type IntoIter = Iter<ContextFlagsArm64Old>
type IntoIter = Iter<ContextFlagsArm64Old>
source§fn into_iter(self) -> <ContextFlagsArm64Old as IntoIterator>::IntoIter
fn into_iter(self) -> <ContextFlagsArm64Old as IntoIterator>::IntoIter
source§impl LowerHex for ContextFlagsArm64Old
impl LowerHex for ContextFlagsArm64Old
source§impl Not for ContextFlagsArm64Old
impl Not for ContextFlagsArm64Old
source§fn not(self) -> ContextFlagsArm64Old
fn not(self) -> ContextFlagsArm64Old
The bitwise negation (!
) of the bits in a flags value, truncating the result.
source§type Output = ContextFlagsArm64Old
type Output = ContextFlagsArm64Old
!
operator.source§impl Octal for ContextFlagsArm64Old
impl Octal for ContextFlagsArm64Old
source§impl PartialEq for ContextFlagsArm64Old
impl PartialEq for ContextFlagsArm64Old
source§impl Sub for ContextFlagsArm64Old
impl Sub for ContextFlagsArm64Old
source§fn sub(self, other: ContextFlagsArm64Old) -> ContextFlagsArm64Old
fn sub(self, other: ContextFlagsArm64Old) -> ContextFlagsArm64Old
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.
source§type Output = ContextFlagsArm64Old
type Output = ContextFlagsArm64Old
-
operator.source§impl SubAssign for ContextFlagsArm64Old
impl SubAssign for ContextFlagsArm64Old
source§fn sub_assign(&mut self, other: ContextFlagsArm64Old)
fn sub_assign(&mut self, other: ContextFlagsArm64Old)
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.
source§impl UpperHex for ContextFlagsArm64Old
impl UpperHex for ContextFlagsArm64Old
impl Copy for ContextFlagsArm64Old
impl Eq for ContextFlagsArm64Old
impl StructuralPartialEq for ContextFlagsArm64Old
Auto Trait Implementations§
impl Freeze for ContextFlagsArm64Old
impl RefUnwindSafe for ContextFlagsArm64Old
impl Send for ContextFlagsArm64Old
impl Sync for ContextFlagsArm64Old
impl Unpin for ContextFlagsArm64Old
impl UnwindSafe for ContextFlagsArm64Old
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
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)
clone_to_uninit
)