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
sourceimpl Matroska
impl Matroska
sourcepub fn open(file: File) -> Result<Matroska, MatroskaError>
pub fn open(file: File) -> Result<Matroska, MatroskaError>
Parses contents of open Matroska file
sourcepub fn video_tracks(&self) -> Vec<&Track>
pub fn video_tracks(&self) -> Vec<&Track>
Returns all tracks with a type of “video”
sourcepub fn audio_tracks(&self) -> Vec<&Track>
pub fn audio_tracks(&self) -> Vec<&Track>
Returns all tracks with a type of “audio”
sourcepub fn subtitle_tracks(&self) -> Vec<&Track>
pub fn subtitle_tracks(&self) -> Vec<&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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more