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 · 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(buf: &mut &[u8]) -> Result<Self>
fn decode_body(buf: &mut &[u8]) -> 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
Source§impl PartialEq for ChapterDisplay
impl PartialEq for ChapterDisplay
impl Eq for ChapterDisplay
impl StructuralPartialEq for ChapterDisplay
Auto Trait Implementations§
impl Freeze for ChapterDisplay
impl RefUnwindSafe for ChapterDisplay
impl Send for ChapterDisplay
impl Sync for ChapterDisplay
impl Unpin for ChapterDisplay
impl UnwindSafe for ChapterDisplay
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> AsyncWriteTo for Twhere
T: Encode,
impl<T> AsyncWriteTo for Twhere
T: Encode,
Source§async fn async_write_to<W>(&self, w: &mut W) -> Result<(), Error>where
W: AsyncWrite + Unpin,
async fn async_write_to<W>(&self, w: &mut W) -> Result<(), Error>where
W: AsyncWrite + Unpin,
tokio only.