Enum BreakpointSize
#[repr(u8)]pub enum BreakpointSize {
Length1B = 0,
Length2B = 1,
Length8B = 2,
Length4B = 3,
}Expand description
The size of a hardware breakpoint.
Variants§
Length1B = 0
1 byte length
Length2B = 1
2 byte length
Length8B = 2
8 byte length
Length4B = 3
4 byte length
Implementations§
§impl BreakpointSize
impl BreakpointSize
pub const fn new(size: usize) -> Option<BreakpointSize>
pub const fn new(size: usize) -> Option<BreakpointSize>
Creates a new hardware breakpoint size if size is valid.
pub const fn from_bits(bits: u64) -> Option<BreakpointSize>
pub const fn from_bits(bits: u64) -> Option<BreakpointSize>
Creates a new hardware breakpoint size if bits is valid.
Trait Implementations§
§impl Clone for BreakpointSize
impl Clone for BreakpointSize
§fn clone(&self) -> BreakpointSize
fn clone(&self) -> BreakpointSize
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BreakpointSize
§impl Debug for BreakpointSize
impl Debug for BreakpointSize
impl Eq for BreakpointSize
§impl PartialEq for BreakpointSize
impl PartialEq for BreakpointSize
impl StructuralPartialEq for BreakpointSize
Auto Trait Implementations§
impl Freeze for BreakpointSize
impl RefUnwindSafe for BreakpointSize
impl Send for BreakpointSize
impl Sync for BreakpointSize
impl Unpin for BreakpointSize
impl UnsafeUnpin for BreakpointSize
impl UnwindSafe for BreakpointSize
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