Struct Dr7Value
#[repr(transparent)]pub struct Dr7Value {
bits: u64,
}Expand description
Fields§
§bits: u64Implementations§
§impl Dr7Value
impl Dr7Value
pub const fn from_bits(bits: u64) -> Option<Dr7Value>
pub const fn from_bits(bits: u64) -> Option<Dr7Value>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a field.
pub const fn from_bits_truncate(bits: u64) -> Dr7Value
pub const fn from_bits_truncate(bits: u64) -> Dr7Value
Convert from underlying bit representation, dropping any bits that do not correspond to fields.
pub const unsafe fn from_bits_unchecked(bits: u64) -> Dr7Value
pub const unsafe fn from_bits_unchecked(bits: u64) -> Dr7Value
pub fn insert_flags(&mut self, flags: Dr7Flags)
pub fn insert_flags(&mut self, flags: Dr7Flags)
Inserts the specified Dr7Flags in-place.
pub fn remove_flags(&mut self, flags: Dr7Flags)
pub fn remove_flags(&mut self, flags: Dr7Flags)
Removes the specified Dr7Flags in-place.
pub fn toggle_flags(&mut self, flags: Dr7Flags)
pub fn toggle_flags(&mut self, flags: Dr7Flags)
Toggles the specified Dr7Flags in-place.
pub fn set_flags(&mut self, flags: Dr7Flags, value: bool)
pub fn set_flags(&mut self, flags: Dr7Flags, value: bool)
Inserts or removes the specified Dr7Flags depending on the passed value.
pub fn condition(&self, n: DebugAddressRegisterNumber) -> BreakpointCondition
pub fn condition(&self, n: DebugAddressRegisterNumber) -> BreakpointCondition
Returns the condition field of a debug address register.
pub fn set_condition(
&mut self,
n: DebugAddressRegisterNumber,
condition: BreakpointCondition,
)
pub fn set_condition( &mut self, n: DebugAddressRegisterNumber, condition: BreakpointCondition, )
Sets the condition field of a debug address register.
pub fn size(&self, n: DebugAddressRegisterNumber) -> BreakpointSize
pub fn size(&self, n: DebugAddressRegisterNumber) -> BreakpointSize
Returns the size field of a debug address register.
pub fn set_size(&mut self, n: DebugAddressRegisterNumber, size: BreakpointSize)
pub fn set_size(&mut self, n: DebugAddressRegisterNumber, size: BreakpointSize)
Sets the size field of a debug address register.
Trait Implementations§
impl Copy for Dr7Value
impl Eq for Dr7Value
impl StructuralPartialEq for Dr7Value
Auto Trait Implementations§
impl Freeze for Dr7Value
impl RefUnwindSafe for Dr7Value
impl Send for Dr7Value
impl Sync for Dr7Value
impl Unpin for Dr7Value
impl UnsafeUnpin for Dr7Value
impl UnwindSafe for Dr7Value
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more