pub enum Language {
Iso639([u8; 3]),
Other(u16),
}Expand description
A track language.
Variants§
Iso639([u8; 3])
A packed ISO 639-2/T code, three lowercase letters, such as und.
Other(u16)
A code that is not a packed ISO 639-2/T code: a QuickTime Macintosh
language code (below 0x400, or 0x7FFF for unspecified), or a
packed code with letters outside a-z.
Implementations§
Source§impl Language
impl Language
Sourcepub fn iso639(&self) -> Option<&str>
pub fn iso639(&self) -> Option<&str>
The packed ISO 639-2/T code as a string, when the track has one. A
Macintosh code gives None. Language::iso639_mapped maps it.
Sourcepub fn iso639_mapped(&self) -> Option<&str>
pub fn iso639_mapped(&self) -> Option<&str>
The ISO 639-2/T code, with a Macintosh code mapped through the QuickTime table.
None when the table has no entry: 0x7FFF (unspecified), a code
from 95 to 127, a code above 138, or a packed code with letters
outside a-z.
Trait Implementations§
impl Copy for Language
impl Eq for Language
impl StructuralPartialEq for Language
Auto Trait Implementations§
impl Forget for Language
impl Freeze for Language
impl RefUnwindSafe for Language
impl Send for Language
impl Sync for Language
impl Unpin for Language
impl UnsafeUnpin for Language
impl UnwindSafe for Language
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