Culture
struct · ferroui-protranslate-core · v0.5.0
struct Culture
Canonical Unicode BCP-47 culture identifier. The empty name is invariant.
Members
parse
fn parse(name: &str) -> Result<Self, TranslationError>
invariant
fn invariant() -> Self
name
fn name(self: &Self) -> &str
is_invariant
fn is_invariant(self: &Self) -> bool
parent
fn parent(self: &Self) -> Option<Self>
Parent chain follows identifier structure and terminates at invariant.
flow_direction
fn flow_direction(self: &Self) -> TextFlowDirection
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringErasedDestructorIntoEitherCloneStructuralPartialEqPartialEqEqHashPartialOrdOrdDefaultDebugDisplayFromStr
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.