pub struct CompleteSectionSet { /* private fields */ }Expand description
A complete owned set of original section bytes for one logical section sequence.
Implementations§
Source§impl CompleteSectionSet
impl CompleteSectionSet
Sourcepub const fn meta(&self) -> SectionSetMeta
pub const fn meta(&self) -> SectionSetMeta
Metadata shared by the section set.
Sourcepub fn section_bytes(&self) -> impl ExactSizeIterator<Item = &[u8]>
pub fn section_bytes(&self) -> impl ExactSizeIterator<Item = &[u8]>
Complete section bytes in section-number order.
Sourcepub fn parse_sections<'a, T>(&'a self) -> Result<Vec<T>>
pub fn parse_sections<'a, T>(&'a self) -> Result<Vec<T>>
Parse every section in this set as T.
The parsed values borrow from this CompleteSectionSet, so callers can
retain the set and use borrowed typed views without copying table loops.
Sourcepub fn table<'a, T>(&'a self) -> Result<CompleteTable<T>>
pub fn table<'a, T>(&'a self) -> Result<CompleteTable<T>>
Parse this set as a generic complete table.
Use this for any long-form table that does not need a specialised flattened logical view.
Sourcepub fn nit(&self) -> Result<CompleteNit<'_>>
pub fn nit(&self) -> Result<CompleteNit<'_>>
Build a complete NIT view from this section set.
Sourcepub fn nit_with_registry<'a>(
&'a self,
registry: &'a DescriptorRegistry,
) -> Result<CompleteNit<'a>>
pub fn nit_with_registry<'a>( &'a self, registry: &'a DescriptorRegistry, ) -> Result<CompleteNit<'a>>
Build a complete NIT view using a descriptor registry.
Sourcepub fn bat(&self) -> Result<CompleteBat<'_>>
pub fn bat(&self) -> Result<CompleteBat<'_>>
Build a complete BAT view from this section set.
Sourcepub fn bat_with_registry<'a>(
&'a self,
registry: &'a DescriptorRegistry,
) -> Result<CompleteBat<'a>>
pub fn bat_with_registry<'a>( &'a self, registry: &'a DescriptorRegistry, ) -> Result<CompleteBat<'a>>
Build a complete BAT view using a descriptor registry.
Sourcepub fn sdt(&self) -> Result<CompleteSdt<'_>>
pub fn sdt(&self) -> Result<CompleteSdt<'_>>
Build a complete SDT view from this section set.
Sourcepub fn sdt_with_registry<'a>(
&'a self,
registry: &'a DescriptorRegistry,
) -> Result<CompleteSdt<'a>>
pub fn sdt_with_registry<'a>( &'a self, registry: &'a DescriptorRegistry, ) -> Result<CompleteSdt<'a>>
Build a complete SDT view using a descriptor registry.
Sourcepub fn eit(&self) -> Result<CompleteEit<'_>>
pub fn eit(&self) -> Result<CompleteEit<'_>>
Build a complete EIT view from this section set.
Sourcepub fn eit_with_registry<'a>(
&'a self,
registry: &'a DescriptorRegistry,
) -> Result<CompleteEit<'a>>
pub fn eit_with_registry<'a>( &'a self, registry: &'a DescriptorRegistry, ) -> Result<CompleteEit<'a>>
Build a complete EIT view using a descriptor registry.
Trait Implementations§
Source§impl Clone for CompleteSectionSet
impl Clone for CompleteSectionSet
Source§fn clone(&self) -> CompleteSectionSet
fn clone(&self) -> CompleteSectionSet
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more