Struct probe_rs::RegisterDescription
source · [−]pub struct RegisterDescription { /* private fields */ }
Expand description
Describes a register with its properties.
Implementations
sourceimpl RegisterDescription
impl RegisterDescription
sourcepub fn size_in_bits(&self) -> usize
pub fn size_in_bits(&self) -> usize
Get the size, in bits, of this register
sourcepub fn size_in_bytes(&self) -> usize
pub fn size_in_bytes(&self) -> usize
Get the size, in bytes, of this register
sourcepub fn format_hex_width(&self) -> usize
pub fn format_hex_width(&self) -> usize
Get the width to format this register as a hex string
Assumes a format string like {:#0
Trait Implementations
sourceimpl Clone for RegisterDescription
impl Clone for RegisterDescription
sourcefn clone(&self) -> RegisterDescription
fn clone(&self) -> RegisterDescription
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RegisterDescription
impl Debug for RegisterDescription
sourceimpl From<&RegisterDescription> for RegisterId
impl From<&RegisterDescription> for RegisterId
sourcefn from(description: &RegisterDescription) -> RegisterId
fn from(description: &RegisterDescription) -> RegisterId
Converts to this type from the input type.
sourceimpl From<RegisterDescription> for RegisterId
impl From<RegisterDescription> for RegisterId
sourcefn from(description: RegisterDescription) -> RegisterId
fn from(description: RegisterDescription) -> RegisterId
Converts to this type from the input type.
sourceimpl PartialEq<RegisterDescription> for RegisterDescription
impl PartialEq<RegisterDescription> for RegisterDescription
sourcefn eq(&self, other: &RegisterDescription) -> bool
fn eq(&self, other: &RegisterDescription) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RegisterDescription) -> bool
fn ne(&self, other: &RegisterDescription) -> bool
This method tests for !=
.
impl StructuralPartialEq for RegisterDescription
Auto Trait Implementations
impl RefUnwindSafe for RegisterDescription
impl Send for RegisterDescription
impl Sync for RegisterDescription
impl Unpin for RegisterDescription
impl UnwindSafe for RegisterDescription
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more