#[non_exhaustive]pub enum NationalOption {
English,
German,
SwedishFinnishHungarian,
Italian,
French,
PortugueseSpanish,
CzechSlovak,
Reserved(u8),
}teletext only.Expand description
The C12/C13/C14 “National Option Character Subset” selector (ETSI
EN 300 706 Table 2, page header control bits) — decoded per Table 32’s
first group (0000XXX, “Latin 0”), which clause 15.1 states is the
interpretation at presentation Level 1 (“the national option sub-set in
use on the page is defined by the C12, C13 and C14 control bits in the
page header alone”).
Only NationalOption::English’s character substitutions are applied by
latin_g0_char; the other variants are decoded and labelled (spec
fidelity — every value of this 3-bit field has a name) but fall back to
the base Latin G0 glyph at the 13 nationally-substitutable positions, a
documented gap (see the module docs and docs/teletext-subtitles.md).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
English
000 — English. The only option whose Table 36 substitutions are
implemented (see latin_g0_char).
German
001 — German.
SwedishFinnishHungarian
010 — Swedish/Finnish/Hungarian.
Italian
011 — Italian.
French
100 — French.
PortugueseSpanish
101 — Portuguese/Spanish.
CzechSlovak
110 — Czech/Slovak.
Reserved(u8)
111 — reserved (Table 32’s first group defines no option here); the
raw 3-bit value is retained.
Implementations§
Trait Implementations§
Source§impl Clone for NationalOption
impl Clone for NationalOption
Source§fn clone(&self) -> NationalOption
fn clone(&self) -> NationalOption
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for NationalOption
Source§impl Debug for NationalOption
impl Debug for NationalOption
Source§impl<'de> Deserialize<'de> for NationalOption
Available on crate feature serde only.
impl<'de> Deserialize<'de> for NationalOption
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for NationalOption
impl Display for NationalOption
impl Eq for NationalOption
Source§impl PartialEq for NationalOption
impl PartialEq for NationalOption
Source§impl Serialize for NationalOption
Available on crate feature serde only.
impl Serialize for NationalOption
serde only.