pub(crate) struct SliceValue {
pub(crate) name: String,
pub(crate) value: u128,
}Fields§
§name: String§value: u128Implementations§
Source§impl SliceValue
impl SliceValue
pub fn new( name: &str, value: u128, idx: usize, bit_width: usize, slice_extend: usize, unsigned_imm: bool, part_type: PartType, ) -> Self
pub(crate) fn join(&mut self, other_value: &SliceValue)
pub(crate) fn get_value( &self, part_decoder: &PartDecoder, mappigns: &HashMap<String, Mapping>, ) -> PartTypeValue
pub(crate) fn get_string_value( &self, part_decoder: &PartDecoder, mappings: &HashMap<String, Mapping>, ) -> String
Trait Implementations§
Source§impl Clone for SliceValue
impl Clone for SliceValue
Source§fn clone(&self) -> SliceValue
fn clone(&self) -> SliceValue
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 moreAuto Trait Implementations§
impl Freeze for SliceValue
impl RefUnwindSafe for SliceValue
impl Send for SliceValue
impl Sync for SliceValue
impl Unpin for SliceValue
impl UnsafeUnpin for SliceValue
impl UnwindSafe for SliceValue
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