Struct matroska_demuxer::EbmlHeader
source · pub struct EbmlHeader { /* private fields */ }
Expand description
The EBML header of the file.
Implementations§
source§impl EbmlHeader
impl EbmlHeader
sourcepub fn read_version(&self) -> Option<u64>
pub fn read_version(&self) -> Option<u64>
The minimum EBML version a parser has to support to read this file.
sourcepub fn max_id_length(&self) -> u64
pub fn max_id_length(&self) -> u64
The maximum length of the IDs you’ll find in this file (4 or less in Matroska).
sourcepub fn max_size_length(&self) -> u64
pub fn max_size_length(&self) -> u64
The maximum length of the sizes you’ll find in this file (8 or less in Matroska).
sourcepub fn doc_type(&self) -> &str
pub fn doc_type(&self) -> &str
A string that describes the type of document that follows this EBML header (‘matroska’ / ‘webm’).
sourcepub fn doc_type_version(&self) -> u64
pub fn doc_type_version(&self) -> u64
The version of DocType interpreter used to create the file.
sourcepub fn doc_type_read_version(&self) -> u64
pub fn doc_type_read_version(&self) -> u64
The minimum DocType version an interpreter has to support to read this file.
Trait Implementations§
source§impl Clone for EbmlHeader
impl Clone for EbmlHeader
source§fn clone(&self) -> EbmlHeader
fn clone(&self) -> EbmlHeader
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 RefUnwindSafe for EbmlHeader
impl Send for EbmlHeader
impl Sync for EbmlHeader
impl Unpin for EbmlHeader
impl UnwindSafe for EbmlHeader
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