pub struct ChapterDisplay {
pub crc32: Option<Crc32>,
pub void: Option<Void>,
pub chap_string: ChapString,
pub chap_language: Vec<ChapLanguage>,
pub chap_language_bcp47: Vec<ChapLanguageBcp47>,
pub chap_country: Vec<ChapCountry>,
}Expand description
Contains all possible strings to use for the chapter display.
Fields§
§crc32: Option<Crc32>Optional CRC-32 element for integrity checking.
void: Option<Void>void element, useful for reserving space during writing.
chap_string: ChapStringContains the string to use as the chapter atom.
chap_language: Vec<ChapLanguage>A language corresponding to the string, in the Matroska languages form; see basics on language codes. This Element MUST be ignored if a ChapLanguageBCP47 Element is used within the same ChapterDisplay Element.
chap_language_bcp47: Vec<ChapLanguageBcp47>A language corresponding to the ChapString, in the [@!BCP47] form; see basics on language codes. If a ChapLanguageBCP47 Element is used, then any ChapLanguage and ChapCountry Elements used in the same ChapterDisplay MUST be ignored.
chap_country: Vec<ChapCountry>A country corresponding to the string, in the Matroska countries form; see basics on country codes. This Element MUST be ignored if a ChapLanguageBCP47 Element is used within the same ChapterDisplay Element.
Trait Implementations§
Source§impl Clone for ChapterDisplay
impl Clone for ChapterDisplay
Source§fn clone(&self) -> ChapterDisplay
fn clone(&self) -> ChapterDisplay
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChapterDisplay
impl Debug for ChapterDisplay
Source§impl Default for ChapterDisplay
impl Default for ChapterDisplay
Source§fn default() -> ChapterDisplay
fn default() -> ChapterDisplay
Source§impl Element for ChapterDisplay
impl Element for ChapterDisplay
Source§fn decode_body<B: Buf>(buf: &mut B) -> Result<Self>
fn decode_body<B: Buf>(buf: &mut B) -> Result<Self>
Source§fn encode_body<B: BufMut>(&self, buf: &mut B) -> Result<()>
fn encode_body<B: BufMut>(&self, buf: &mut B) -> Result<()>
Source§const HAS_DEFAULT_VALUE: bool = false
const HAS_DEFAULT_VALUE: bool = false
impl Eq for ChapterDisplay
Source§impl PartialEq for ChapterDisplay
impl PartialEq for ChapterDisplay
Source§fn eq(&self, other: &ChapterDisplay) -> bool
fn eq(&self, other: &ChapterDisplay) -> bool
self and other values to be equal, and is used by ==.