pub struct FieldInfo {
pub name: &'static str,
pub long_name: Option<&'static str>,
pub start: usize,
pub width: usize,
pub value: u64,
pub description: Option<String>,
pub subfields: Vec<FieldInfo>,
}Expand description
Information about a particular field.
Fields§
§name: &'static strThe short name of the field, e.g. “ISS”.
long_name: Option<&'static str>The long name of the field, e.g. “Instruction Specific Syndrome”.
start: usizeThe index of the lowest bit of the field.
width: usizeThe number of bits in the field.
value: u64The value of the field.
description: Option<String>A description explaining the field value, if available.
subfields: Vec<FieldInfo>Any sub-fields.
Implementations§
Source§impl FieldInfo
impl FieldInfo
Sourcepub fn value_string(&self) -> String
pub fn value_string(&self) -> String
Returns the value as a hexadecimal string, or “true” or “false” if it is a single bit.
Sourcepub fn value_binary_string(&self) -> String
pub fn value_binary_string(&self) -> String
Returns the value as a binary strings.
Trait Implementations§
impl Eq for FieldInfo
impl StructuralPartialEq for FieldInfo
Auto Trait Implementations§
impl Freeze for FieldInfo
impl RefUnwindSafe for FieldInfo
impl Send for FieldInfo
impl Sync for FieldInfo
impl Unpin for FieldInfo
impl UnwindSafe for FieldInfo
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