pub struct LanguageOption {
pub display_name: &'static str,
pub bcp47: &'static str,
}Expand description
A human-readable language/region pairing for the TUI’s launch-language
picker, e.g. “Portuguese (Brazil)” → pt-BR. Curated rather than
exhaustive: the common languages and regional variants engineers actually
test with, not every BCP-47 tag iOS recognizes. The CLI’s --language
flag bypasses this table entirely and takes a raw tag, so it is unaffected
by what is or isn’t listed here.
Fields§
§display_name: &'static str§bcp47: &'static strImplementations§
Source§impl LanguageOption
impl LanguageOption
pub const ALL: &'static [LanguageOption]
Trait Implementations§
Source§impl Clone for LanguageOption
impl Clone for LanguageOption
Source§fn clone(&self) -> LanguageOption
fn clone(&self) -> LanguageOption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LanguageOption
Source§impl Debug for LanguageOption
impl Debug for LanguageOption
impl Eq for LanguageOption
Source§impl PartialEq for LanguageOption
impl PartialEq for LanguageOption
impl StructuralPartialEq for LanguageOption
Auto Trait Implementations§
impl Freeze for LanguageOption
impl RefUnwindSafe for LanguageOption
impl Send for LanguageOption
impl Sync for LanguageOption
impl Unpin for LanguageOption
impl UnsafeUnpin for LanguageOption
impl UnwindSafe for LanguageOption
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