#[non_exhaustive]pub struct L1ExtBlock {
pub block_type: u8,
pub data_bit_len: u16,
pub data: Vec<u8>,
}Expand description
One extension block — EN 302 755 §7.2.3.4, Table 37.
Within the L1EXT region the blocks are bit-contiguous (a block’s data is
data_bit_len bits, not byte-padded); only the whole region is zero-padded
to a byte boundary. data holds ceil(data_bit_len/8) bytes, MSB-first,
with the final byte zero-padded in its low bits.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.block_type: u8L1_EXT_BLOCK_TYPE (8 bits, Table 38).
data_bit_len: u16L1_EXT_DATA_LEN — length of data in bits (16-bit wire field).
data: Vec<u8>L1_EXT_BLOCK_DATA — ceil(data_bit_len/8) bytes, MSB-first.
Trait Implementations§
Source§impl Clone for L1ExtBlock
impl Clone for L1ExtBlock
Source§fn clone(&self) -> L1ExtBlock
fn clone(&self) -> L1ExtBlock
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 moreSource§impl Debug for L1ExtBlock
impl Debug for L1ExtBlock
impl Eq for L1ExtBlock
Source§impl PartialEq for L1ExtBlock
impl PartialEq for L1ExtBlock
Source§impl Serialize for L1ExtBlock
Available on crate feature serde only.
impl Serialize for L1ExtBlock
Available on crate feature
serde only.impl StructuralPartialEq for L1ExtBlock
Auto Trait Implementations§
impl Freeze for L1ExtBlock
impl RefUnwindSafe for L1ExtBlock
impl Send for L1ExtBlock
impl Sync for L1ExtBlock
impl Unpin for L1ExtBlock
impl UnsafeUnpin for L1ExtBlock
impl UnwindSafe for L1ExtBlock
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