pub struct StringHeader(/* private fields */);
Implementations§
Source§impl StringHeader
impl StringHeader
pub fn raw_type(&self) -> u8
pub fn size_words(&self) -> u16
pub fn string_index(&self) -> u16
pub fn string_len(&self) -> u16
pub fn set_raw_type(&mut self, value: u8)
pub fn set_size_words(&mut self, value: u16)
pub fn set_string_index(&mut self, value: u16)
pub fn set_string_len(&mut self, value: u16)
pub fn empty() -> Self
Trait Implementations§
Source§impl<T> BitRange<T> for StringHeaderwhere
u64: BitRange<T>,
impl<T> BitRange<T> for StringHeaderwhere
u64: BitRange<T>,
Source§impl<T> BitRangeMut<T> for StringHeaderwhere
u64: BitRangeMut<T>,
impl<T> BitRangeMut<T> for StringHeaderwhere
u64: BitRangeMut<T>,
Source§fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
Set a range of bits.
Source§impl Clone for StringHeader
impl Clone for StringHeader
Source§fn clone(&self) -> StringHeader
fn clone(&self) -> StringHeader
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 StringHeader
impl Debug for StringHeader
Source§impl PartialEq for StringHeader
impl PartialEq for StringHeader
Source§impl TraceHeader for StringHeader
impl TraceHeader for StringHeader
fn set_size_words(&mut self, n: u16)
fn to_le_bytes(&self) -> [u8; 8]
impl Copy for StringHeader
impl Eq for StringHeader
impl StructuralPartialEq for StringHeader
Auto Trait Implementations§
impl Freeze for StringHeader
impl RefUnwindSafe for StringHeader
impl Send for StringHeader
impl Sync for StringHeader
impl Unpin for StringHeader
impl UnwindSafe for StringHeader
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