pub struct BitfieldValue {
pub struct_name: String,
pub values: HashMap<String, FieldValue>,
}Expand description
Represents a value stored in a bitfield structure.
Fields§
§struct_name: StringThe name of the structure this value represents.
values: HashMap<String, FieldValue>The field values.
Implementations§
Source§impl BitfieldValue
impl BitfieldValue
Sourcepub fn set_nested(
&mut self,
field_name: impl Into<String>,
value: BitfieldValue,
)
pub fn set_nested( &mut self, field_name: impl Into<String>, value: BitfieldValue, )
Set a nested structure field value.
Sourcepub fn get_nested(&self, field_name: &str) -> Option<&BitfieldValue>
pub fn get_nested(&self, field_name: &str) -> Option<&BitfieldValue>
Get a nested structure field value.
Sourcepub fn get_nested_mut(&mut self, field_name: &str) -> Option<&mut BitfieldValue>
pub fn get_nested_mut(&mut self, field_name: &str) -> Option<&mut BitfieldValue>
Get a mutable reference to a nested structure field value.
Trait Implementations§
Source§impl Clone for BitfieldValue
impl Clone for BitfieldValue
Source§fn clone(&self) -> BitfieldValue
fn clone(&self) -> BitfieldValue
Returns a duplicate 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 BitfieldValue
impl Debug for BitfieldValue
Source§impl PartialEq for BitfieldValue
impl PartialEq for BitfieldValue
impl StructuralPartialEq for BitfieldValue
Auto Trait Implementations§
impl Freeze for BitfieldValue
impl RefUnwindSafe for BitfieldValue
impl Send for BitfieldValue
impl Sync for BitfieldValue
impl Unpin for BitfieldValue
impl UnwindSafe for BitfieldValue
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