Trait bpx::Interface [−][src]
pub trait Interface { fn find_section_by_type(&self, btype: u8) -> Option<SectionHandle>; fn find_all_sections_of_type(&self, btype: u8) -> Vec<SectionHandle>; fn find_section_by_index(&self, index: u32) -> Option<SectionHandle>; fn get_section_header(&self, handle: SectionHandle) -> &SectionHeader; fn open_section(
&mut self,
handle: SectionHandle
) -> Result<&mut dyn SectionData>; fn get_main_header(&self) -> &MainHeader; }
Expand description
The interface implemented by both the BPX encoder and decoder
Required methods
fn find_section_by_type(&self, btype: u8) -> Option<SectionHandle>
[src]
fn find_section_by_type(&self, btype: u8) -> Option<SectionHandle>
[src]fn find_all_sections_of_type(&self, btype: u8) -> Vec<SectionHandle>
[src]
fn find_all_sections_of_type(&self, btype: u8) -> Vec<SectionHandle>
[src]fn find_section_by_index(&self, index: u32) -> Option<SectionHandle>
[src]
fn find_section_by_index(&self, index: u32) -> Option<SectionHandle>
[src]fn get_section_header(&self, handle: SectionHandle) -> &SectionHeader
[src]
fn get_section_header(&self, handle: SectionHandle) -> &SectionHeader
[src]fn open_section(
&mut self,
handle: SectionHandle
) -> Result<&mut dyn SectionData>
[src]
fn open_section(
&mut self,
handle: SectionHandle
) -> Result<&mut dyn SectionData>
[src]fn get_main_header(&self) -> &MainHeader
[src]
fn get_main_header(&self) -> &MainHeader
[src]Implementors
impl<'a, TBackend: IoBackend> Interface for Decoder<'a, TBackend>
[src]
impl<'a, TBackend: IoBackend> Interface for Decoder<'a, TBackend>
[src]fn find_section_by_type(&self, btype: u8) -> Option<SectionHandle>
[src]
fn find_all_sections_of_type(&self, btype: u8) -> Vec<SectionHandle>
[src]
fn find_section_by_index(&self, index: u32) -> Option<SectionHandle>
[src]
fn get_section_header(&self, handle: SectionHandle) -> &SectionHeader
[src]
fn open_section(
&mut self,
handle: SectionHandle
) -> Result<&mut dyn SectionData>
[src]
&mut self,
handle: SectionHandle
) -> Result<&mut dyn SectionData>
fn get_main_header(&self) -> &MainHeader
[src]
impl<'a, TBackend: IoBackend> Interface for Encoder<'a, TBackend>
[src]
impl<'a, TBackend: IoBackend> Interface for Encoder<'a, TBackend>
[src]fn find_section_by_type(&self, btype: u8) -> Option<SectionHandle>
[src]
fn find_all_sections_of_type(&self, btype: u8) -> Vec<SectionHandle>
[src]
fn find_section_by_index(&self, index: u32) -> Option<SectionHandle>
[src]
fn get_section_header(&self, handle: SectionHandle) -> &SectionHeader
[src]
fn open_section(
&mut self,
handle: SectionHandle
) -> Result<&mut dyn SectionData>
[src]
&mut self,
handle: SectionHandle
) -> Result<&mut dyn SectionData>