pub struct Toc { /* private fields */ }
Expand description
Table of contents of a frame.
Frame data are organized in groups. TOC specified the size and order of each group, and it is decoded after the frame header.
Implementations§
Source§impl Toc
impl Toc
Sourcepub fn is_single_entry(&self) -> bool
pub fn is_single_entry(&self) -> bool
Returns whether the frame has only one group.
pub fn group_index_bitstream_order(&self, kind: TocGroupKind) -> usize
Sourcepub fn total_byte_size(&self) -> usize
pub fn total_byte_size(&self) -> usize
Returns the total size of the frame data in bytes.
pub fn iter_bitstream_order(&self) -> impl Iterator<Item = TocGroup> + Send
Trait Implementations§
Source§impl Bundle<&FrameHeader> for Toc
impl Bundle<&FrameHeader> for Toc
Auto Trait Implementations§
impl Freeze for Toc
impl RefUnwindSafe for Toc
impl Send for Toc
impl Sync for Toc
impl Unpin for Toc
impl UnwindSafe for Toc
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