pub struct Ebml {
pub crc32: Option<Crc32>,
pub void: Option<Void>,
pub ebml_version: Option<EbmlVersion>,
pub ebml_read_version: Option<EbmlReadVersion>,
pub ebml_max_id_length: EbmlMaxIdLength,
pub ebml_max_size_length: EbmlMaxSizeLength,
pub doc_type: Option<DocType>,
pub doc_type_version: Option<DocTypeVersion>,
pub doc_type_read_version: Option<DocTypeReadVersion>,
}Expand description
EBML element, the first top-level element in a Matroska file.
Fields§
§crc32: Option<Crc32>Optional CRC-32 element for integrity checking.
void: Option<Void>void element, useful for reserving space during writing.
ebml_version: Option<EbmlVersion>EBMLVersion element, indicates the version of EBML used.
ebml_read_version: Option<EbmlReadVersion>EBMLReadVersion element, indicates the minimum version of EBML required to read the file.
ebml_max_id_length: EbmlMaxIdLengthEBMLMaxIDLength element, indicates the maximum length of an EBML ID in bytes.
ebml_max_size_length: EbmlMaxSizeLengthEBMLMaxSizeLength element, indicates the maximum length of an EBML size in bytes.
doc_type: Option<DocType>DocType element, indicates the type of document. For Matroska files, this is usually “matroska” or “webm”.
doc_type_version: Option<DocTypeVersion>DocTypeVersion element, indicates the version of the document type.
doc_type_read_version: Option<DocTypeReadVersion>DocTypeReadVersion element, indicates the minimum version of the document type required to read the file.
Trait Implementations§
Source§impl Element for Ebml
impl Element for Ebml
Source§fn decode_body(buf: &mut &[u8]) -> Result<Self>
fn decode_body(buf: &mut &[u8]) -> Result<Self>
Decode the body of the element from a buffer.
Source§fn encode_body<B: BufMut>(&self, buf: &mut B) -> Result<()>
fn encode_body<B: BufMut>(&self, buf: &mut B) -> Result<()>
Encode the body of the element to a buffer.
Source§const HAS_DEFAULT_VALUE: bool = false
const HAS_DEFAULT_VALUE: bool = false
Whether the element has a default value, as per Matroska specification.
If true, and the element is missing in a master element, it should be treated as if it were present with the default value.
If false, and the element is missing in a master element, it should be treated as an error.
impl Eq for Ebml
impl StructuralPartialEq for Ebml
Auto Trait Implementations§
impl Freeze for Ebml
impl RefUnwindSafe for Ebml
impl Send for Ebml
impl Sync for Ebml
impl Unpin for Ebml
impl UnsafeUnpin for Ebml
impl UnwindSafe for Ebml
Blanket Implementations§
Source§impl<T> AsyncReadElement for Twhere
T: Element,
impl<T> AsyncReadElement for Twhere
T: Element,
Source§impl<T> AsyncReadFrom for Twhere
T: Element,
impl<T> AsyncReadFrom for Twhere
T: Element,
Source§impl<T> AsyncWriteElement for Twhere
T: Element,
impl<T> AsyncWriteElement for Twhere
T: Element,
Source§impl<T> AsyncWriteTo for Twhere
T: Encode,
impl<T> AsyncWriteTo for Twhere
T: Encode,
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