Struct ogg_table::TableOfContent
source · pub struct TableOfContent {
pub entries: Vec<Entry>,
}Fields§
§entries: Vec<Entry>Implementations§
source§impl TableOfContent
impl TableOfContent
sourcepub fn from_ogg_reader<R: Read + Seek>(rdr: &mut R) -> Result<Self>
pub fn from_ogg_reader<R: Read + Seek>(rdr: &mut R) -> Result<Self>
Build a table of content from the headers of a ogg file.
sourcepub fn from_reader<R: Read>(rdr: &mut R) -> Result<Self>
pub fn from_reader<R: Read>(rdr: &mut R) -> Result<Self>
Read a table of content file.
This uses a very simple serialization format.
pub fn write<W: Write>(&self, w: &mut W) -> Result<()>
pub fn last_entry_before(&self, start_pos: u64) -> Option<&Entry>
Trait Implementations§
source§impl Clone for TableOfContent
impl Clone for TableOfContent
source§fn clone(&self) -> TableOfContent
fn clone(&self) -> TableOfContent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TableOfContent
impl RefUnwindSafe for TableOfContent
impl Send for TableOfContent
impl Sync for TableOfContent
impl Unpin for TableOfContent
impl UnwindSafe for TableOfContent
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)