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<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 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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more