pub struct FixedWidthField<'a> {
pub name: &'a str,
pub bits: u32,
pub descriptor: &'a str,
pub value: Option<Value>,
pub comment: Option<&'a str>,
}Expand description
A fixed-width field read from the bitstream.
Fields§
§name: &'a strField name, e.g. "sync_byte", "offset_for_ref_frame[ 0 ]"
bits: u32Number of bits
descriptor: &'a strType descriptor, e.g. "bslbf", "u(8)", "f(1)"
value: Option<Value>Decoded value, or None for raw-byte field templates
comment: Option<&'a str>Inline comment, e.g. "equal to 0x03"
Auto Trait Implementations§
impl<'a> Freeze for FixedWidthField<'a>
impl<'a> RefUnwindSafe for FixedWidthField<'a>
impl<'a> Send for FixedWidthField<'a>
impl<'a> Sync for FixedWidthField<'a>
impl<'a> Unpin for FixedWidthField<'a>
impl<'a> UnsafeUnpin for FixedWidthField<'a>
impl<'a> UnwindSafe for FixedWidthField<'a>
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