pub struct VpsDataField {
pub header: LineHeader,
pub vps_data_block: [u8; 13],
}Expand description
VPS data field — ETSI EN 301 775 §4.6.1, Table 6 (data_unit_id 0xC3).
The vps_data_block (13 bytes) is bytes 3..=15 of an EN 300 231 VPS line,
excluding the run-in and start-code byte (§4.6.2).
Fields§
§header: LineHeaderShared first-byte header (§4.6.1: field_parity 1, line_offset 16).
vps_data_block: [u8; 13]13-byte vps_data_block (104 bits, §4.6; EN 300 231 — opaque here).
Implementations§
Source§impl VpsDataField
impl VpsDataField
Sourcepub fn serialized_len(&self) -> usize
pub fn serialized_len(&self) -> usize
Bytes this data field occupies (the data_unit_length).
Sourcepub fn serialize_into(&self, out: &mut [u8]) -> Result<usize>
pub fn serialize_into(&self, out: &mut [u8]) -> Result<usize>
Serialize into out, returning the number of bytes written.
Trait Implementations§
Source§impl Clone for VpsDataField
impl Clone for VpsDataField
Source§fn clone(&self) -> VpsDataField
fn clone(&self) -> VpsDataField
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 moreimpl Copy for VpsDataField
Source§impl Debug for VpsDataField
impl Debug for VpsDataField
impl Eq for VpsDataField
Source§impl PartialEq for VpsDataField
impl PartialEq for VpsDataField
Source§impl Serialize for VpsDataField
Available on crate feature serde only.
impl Serialize for VpsDataField
Available on crate feature
serde only.impl StructuralPartialEq for VpsDataField
Auto Trait Implementations§
impl Freeze for VpsDataField
impl RefUnwindSafe for VpsDataField
impl Send for VpsDataField
impl Sync for VpsDataField
impl Unpin for VpsDataField
impl UnsafeUnpin for VpsDataField
impl UnwindSafe for VpsDataField
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