FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RegionProfile

    struct · ferroui-protranslate-core · v0.5.0

    struct RegionProfile
    

    Immutable region metadata. Explicit profiles let hosts supply application or user overrides without changing culture, process state, or compiled CLDR data.

    View source

    Members

    culture

    culture: crate::Culture
    

    Source

    two_letter_iso_region_name

    two_letter_iso_region_name: String
    

    Source

    english_name

    english_name: String
    

    Source

    native_name

    native_name: String
    

    Source

    iso_currency_symbol

    iso_currency_symbol: String
    

    Source

    currency_symbol

    currency_symbol: String
    

    Source

    currency_decimal_digits

    currency_decimal_digits: u8
    

    Source

    is_metric

    is_metric: bool
    

    Source

    for_culture

    fn for_culture(culture: &Culture) -> Result<Self, TranslationError>
    

    Source

    for_region

    fn for_region(code: &str, culture: &Culture) -> Result<Self, TranslationError>
    

    Resolve an explicit region with the locale's language. The returned profile can be customized before passing it to set_region_override.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Debug
    • Clone
    • StructuralPartialEq
    • PartialEq
    • Eq

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.