INSLocale

Trait INSLocale 

Source
pub trait INSLocale: PNSObject {
Show 49 methods // Provided methods fn m_locale_with_locale_identifier(string: &NSString) -> Self where Self: Sized + FromId { ... } fn m_init_with_locale_identifier( &mut self, locale_identifier: &NSString, ) -> Self where Self: Sized + FromId { ... } fn m_init_with_coder(&mut self, coder: &NSCoder) -> Self where Self: Sized + FromId { ... } fn p_autoupdating_current_locale() -> NSLocale { ... } fn p_current_locale() -> NSLocale { ... } fn p_system_locale() -> NSLocale { ... } fn p_available_locale_identifiers() -> NSArray<NSString> { ... } fn p_iso_country_codes() -> NSArray<NSString> { ... } fn p_iso_language_codes() -> NSArray<NSString> { ... } fn p_iso_currency_codes() -> NSArray<NSString> { ... } fn p_common_isocurrency_codes() -> NSArray<NSString> { ... } fn m_canonical_locale_identifier_from_string(string: &NSString) -> NSString { ... } fn m_components_from_locale_identifier( string: &NSString, ) -> NSDictionary<NSString, NSString> { ... } fn m_locale_identifier_from_components( dict: &NSDictionary<NSString, NSString>, ) -> NSString { ... } fn m_canonical_language_identifier_from_string( string: &NSString, ) -> NSString { ... } fn m_locale_identifier_from_windows_locale_code( lcid: u32, ) -> Option<NSString> { ... } fn m_windows_locale_code_from_locale_identifier( locale_identifier: &NSString, ) -> u32 { ... } fn p_locale_identifier(&self) -> NSString { ... } fn p_country_code(&self) -> Option<NSString> { ... } fn p_language_code(&self) -> NSString { ... } fn p_script_code(&self) -> Option<NSString> { ... } fn p_variant_code(&self) -> Option<NSString> { ... } fn p_exemplar_character_set(&self) -> NSCharacterSet { ... } fn p_collation_identifier(&self) -> Option<NSString> { ... } fn p_collator_identifier(&self) -> NSString { ... } fn p_uses_metric_system(&self) -> bool { ... } fn p_decimal_separator(&self) -> NSString { ... } fn p_grouping_separator(&self) -> NSString { ... } fn p_currency_code(&self) -> Option<NSString> { ... } fn p_currency_symbol(&self) -> NSString { ... } fn p_calendar_identifier(&self) -> NSString { ... } fn p_quotation_begin_delimiter(&self) -> NSString { ... } fn p_quotation_end_delimiter(&self) -> NSString { ... } fn p_alternate_quotation_begin_delimiter(&self) -> NSString { ... } fn p_alternate_quotation_end_delimiter(&self) -> NSString { ... } fn m_localized_string_for_locale_identifier( &self, locale_identifier: &NSString, ) -> NSString { ... } fn m_localized_string_for_country_code( &self, country_code: &NSString, ) -> Option<NSString> { ... } fn m_localized_string_for_language_code( &self, language_code: &NSString, ) -> Option<NSString> { ... } fn m_localized_string_for_script_code( &self, script_code: &NSString, ) -> Option<NSString> { ... } fn m_localized_string_for_variant_code( &self, variant_code: &NSString, ) -> Option<NSString> { ... } fn m_localized_string_for_collation_identifier( &self, collation_identifier: &NSString, ) -> Option<NSString> { ... } fn m_localized_string_for_collator_identifier( &self, collator_identifier: &NSString, ) -> Option<NSString> { ... } fn m_localized_string_for_currency_code( &self, currency_code: &NSString, ) -> Option<NSString> { ... } fn m_localized_string_for_calendar_identifier( &self, calendar_identifier: &NSString, ) -> Option<NSString> { ... } fn m_object_for_key(&self, key: NSLocaleKey) -> Option<id> { ... } fn m_display_name_for_key_value( &self, key: NSLocaleKey, value: &NSString, ) -> Option<NSString> { ... } fn p_preferred_languages() -> NSArray<NSString> { ... } fn m_character_direction_for_language( iso_language_code: NSString, ) -> LanguageDirection { ... } fn m_line_direction_for_language( iso_language_code: NSString, ) -> LanguageDirection { ... }
}
Expand description

A trait containing all the methods for NSLocale

Provided Methods§

Source

fn m_locale_with_locale_identifier(string: &NSString) -> Self
where Self: Sized + FromId,

Returns a locale initialized using the given locale identifier.

Source

fn m_init_with_locale_identifier( &mut self, locale_identifier: &NSString, ) -> Self
where Self: Sized + FromId,

Initializes a locale using a given locale identifier.

Source

fn m_init_with_coder(&mut self, coder: &NSCoder) -> Self
where Self: Sized + FromId,

Returns a locale initialized from data in the given unarchiver.

Source

fn p_autoupdating_current_locale() -> NSLocale

A locale which tracks the user’s current preferences.

Source

fn p_current_locale() -> NSLocale

A locale representing the user’s region settings at the time the property is read.

Source

fn p_system_locale() -> NSLocale

A locale representing the generic root values with little localization.

Source

fn p_available_locale_identifiers() -> NSArray<NSString>

The list of locale identifiers available on the system.

Source

fn p_iso_country_codes() -> NSArray<NSString>

The list of known country or region codes.

Source

fn p_iso_language_codes() -> NSArray<NSString>

The list of known language codes.

Source

fn p_iso_currency_codes() -> NSArray<NSString>

The list of known currency codes.

Source

fn p_common_isocurrency_codes() -> NSArray<NSString>

A list of commonly encountered currency codes.

Source

fn m_canonical_locale_identifier_from_string(string: &NSString) -> NSString

Returns the canonical identifier for a given locale identification string.

Source

fn m_components_from_locale_identifier( string: &NSString, ) -> NSDictionary<NSString, NSString>

Returns a dictionary that is the result of parsing a locale ID.

Source

fn m_locale_identifier_from_components( dict: &NSDictionary<NSString, NSString>, ) -> NSString

Returns a locale identifier from the components specified in a given dictionary.

Source

fn m_canonical_language_identifier_from_string(string: &NSString) -> NSString

Returns a canonical language identifier by mapping an arbitrary locale identification string to the canonical identifier.

Source

fn m_locale_identifier_from_windows_locale_code(lcid: u32) -> Option<NSString>

Returns a locale identifier from a Windows locale code.

Source

fn m_windows_locale_code_from_locale_identifier( locale_identifier: &NSString, ) -> u32

Returns a Window locale code from the locale identifier.

Source

fn p_locale_identifier(&self) -> NSString

The identifier for the locale.

Source

fn p_country_code(&self) -> Option<NSString>

The country or region code for the locale.

Source

fn p_language_code(&self) -> NSString

The language code for the locale.

Source

fn p_script_code(&self) -> Option<NSString>

The script code for the locale.

Source

fn p_variant_code(&self) -> Option<NSString>

The variant code for the locale.

Source

fn p_exemplar_character_set(&self) -> NSCharacterSet

The exemplar character set for the locale.

Source

fn p_collation_identifier(&self) -> Option<NSString>

The collation identifier for the locale.

Source

fn p_collator_identifier(&self) -> NSString

The collator identifier for the locale.

Source

fn p_uses_metric_system(&self) -> bool

A Boolean value that indicates whether the locale uses the metric system.

Source

fn p_decimal_separator(&self) -> NSString

The decimal separator for the locale.

Source

fn p_grouping_separator(&self) -> NSString

The grouping separator for the locale.

Source

fn p_currency_code(&self) -> Option<NSString>

The currency code for the locale.

Source

fn p_currency_symbol(&self) -> NSString

The currency symbol for the locale.

Source

fn p_calendar_identifier(&self) -> NSString

The calendar identifier for the locale.

Source

fn p_quotation_begin_delimiter(&self) -> NSString

The begin quotation symbol for the locale.

Source

fn p_quotation_end_delimiter(&self) -> NSString

The end quotation symbol for the locale.

Source

fn p_alternate_quotation_begin_delimiter(&self) -> NSString

The alternate begin quotation symbol for the locale.

Source

fn p_alternate_quotation_end_delimiter(&self) -> NSString

The alternate end quotation symbol for the locale.

Source

fn m_localized_string_for_locale_identifier( &self, locale_identifier: &NSString, ) -> NSString

Returns the localized string for the specified locale identifier.

Source

fn m_localized_string_for_country_code( &self, country_code: &NSString, ) -> Option<NSString>

Returns the localized string for a country or region code.

Source

fn m_localized_string_for_language_code( &self, language_code: &NSString, ) -> Option<NSString>

Returns the localized string for the specified language code.

Source

fn m_localized_string_for_script_code( &self, script_code: &NSString, ) -> Option<NSString>

Returns the localized string for the specified script code.

Source

fn m_localized_string_for_variant_code( &self, variant_code: &NSString, ) -> Option<NSString>

Returns the localized string for the specified variant code.

Source

fn m_localized_string_for_collation_identifier( &self, collation_identifier: &NSString, ) -> Option<NSString>

Returns the localized string for the specified collation identifier.

Source

fn m_localized_string_for_collator_identifier( &self, collator_identifier: &NSString, ) -> Option<NSString>

Returns the localized string for the specified collator identifier.

Source

fn m_localized_string_for_currency_code( &self, currency_code: &NSString, ) -> Option<NSString>

Returns the localized string for the specified currency code.

Source

fn m_localized_string_for_calendar_identifier( &self, calendar_identifier: &NSString, ) -> Option<NSString>

Returns the localized string for the specified language code.

Source

fn m_object_for_key(&self, key: NSLocaleKey) -> Option<id>

Returns the value of the component corresponding to the specified key.

Source

fn m_display_name_for_key_value( &self, key: NSLocaleKey, value: &NSString, ) -> Option<NSString>

Returns the display name for the given locale component value.

Source

fn p_preferred_languages() -> NSArray<NSString>

An ordered list of the user’s preferred languages.

Source

fn m_character_direction_for_language( iso_language_code: NSString, ) -> LanguageDirection

Returns the direction of the sequence of characters in a line for the specified ISO language code.

Source

fn m_line_direction_for_language( iso_language_code: NSString, ) -> LanguageDirection

Returns the direction of the sequence of lines for the specified ISO language code.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§