Struct osiris_process::register::RegisterRange
source · pub struct RegisterRange {
pub start: RegisterId,
pub end: RegisterId,
}Fields§
§start: RegisterId§end: RegisterIdImplementations§
source§impl RegisterRange
impl RegisterRange
pub fn new(start: RegisterId, end: RegisterId) -> Self
pub fn from_u32(data: u32) -> Self
pub fn to_usize_range(&self) -> RangeInclusive<usize>
pub fn to_u32(&self) -> u32
pub fn len(&self) -> usize
Trait Implementations§
source§impl Clone for RegisterRange
impl Clone for RegisterRange
source§fn clone(&self) -> RegisterRange
fn clone(&self) -> RegisterRange
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for RegisterRange
impl Debug for RegisterRange
source§impl Display for RegisterRange
impl Display for RegisterRange
source§impl Ord for RegisterRange
impl Ord for RegisterRange
source§fn cmp(&self, other: &RegisterRange) -> Ordering
fn cmp(&self, other: &RegisterRange) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RegisterRange
impl PartialEq for RegisterRange
source§fn eq(&self, other: &RegisterRange) -> bool
fn eq(&self, other: &RegisterRange) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for RegisterRange
impl PartialOrd for RegisterRange
source§fn partial_cmp(&self, other: &RegisterRange) -> Option<Ordering>
fn partial_cmp(&self, other: &RegisterRange) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for RegisterRange
impl Eq for RegisterRange
impl StructuralPartialEq for RegisterRange
Auto Trait Implementations§
impl Freeze for RegisterRange
impl RefUnwindSafe for RegisterRange
impl Send for RegisterRange
impl Sync for RegisterRange
impl Unpin for RegisterRange
impl UnwindSafe for RegisterRange
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