pub struct Matroska {
pub info: Info,
pub tracks: Vec<Track>,
pub attachments: Vec<Attachment>,
pub chapters: Vec<ChapterEdition>,
pub tags: Vec<Tag>,
}
Expand description
A Matroska file
Fields§
§info: Info
The file’s Info segment
tracks: Vec<Track>
The file’s Tracks segment
attachments: Vec<Attachment>
The file’s Attachments segment
chapters: Vec<ChapterEdition>
The file’s Chapters segment
The file’s Tags segment
Implementations§
source§impl Matroska
impl Matroska
sourcepub fn open<R: Read + Seek>(file: R) -> Result<Matroska, MatroskaError>
pub fn open<R: Read + Seek>(file: R) -> Result<Matroska, MatroskaError>
Parses contents of open Matroska file
sourcepub fn get<R, P>(file: R) -> Result<Option<P::Output>, MatroskaError>
👎Deprecated since 0.21.0: use matroska::get() function instead
pub fn get<R, P>(file: R) -> Result<Option<P::Output>, MatroskaError>
Returns a single item from the Matroska file such as Info
sourcepub fn video_tracks(&self) -> impl Iterator<Item = &Track>
pub fn video_tracks(&self) -> impl Iterator<Item = &Track>
Returns all tracks with a type of “video”
sourcepub fn audio_tracks(&self) -> impl Iterator<Item = &Track>
pub fn audio_tracks(&self) -> impl Iterator<Item = &Track>
Returns all tracks with a type of “audio”
sourcepub fn subtitle_tracks(&self) -> impl Iterator<Item = &Track>
pub fn subtitle_tracks(&self) -> impl Iterator<Item = &Track>
Returns all tracks with a type of “subtitle”
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Matroska
impl Send for Matroska
impl Sync for Matroska
impl Unpin for Matroska
impl UnwindSafe for Matroska
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