FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Culture

    struct · ferroui-protranslate-core · v0.5.0

    struct Culture
    

    Canonical Unicode BCP-47 culture identifier. The empty name is invariant.

    View source

    Members

    parse

    fn parse(name: &str) -> Result<Self, TranslationError>
    

    Source

    invariant

    fn invariant() -> Self
    

    Source

    name

    fn name(self: &Self) -> &str
    

    Source

    is_invariant

    fn is_invariant(self: &Self) -> bool
    

    Source

    parent

    fn parent(self: &Self) -> Option<Self>
    

    Parent chain follows identifier structure and terminates at invariant.

    Source

    flow_direction

    fn flow_direction(self: &Self) -> TextFlowDirection
    

    Source

    region_code

    fn region_code(self: &Self) -> Option<String>
    

    Region from the tag, or Unicode CLDR's likely-subtags data. Invariant has the deterministic region US; no process-global locale is read.

    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
    • ToString
    • ErasedDestructor
    • IntoEither
    • Clone
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • PartialOrd
    • Ord
    • Default
    • Debug
    • Display
    • FromStr

    Availability

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