INSOrthography

Trait INSOrthography 

Source
pub trait INSOrthography: PNSObject {
    // Provided methods
    fn m_default_orthography_for_language(language: NSString) -> Self
       where Self: Sized + FromId { ... }
    fn m_init_with_dominant_script_language_map(
        &mut self,
        script: NSString,
        map: NSDictionary<NSString, NSArray<NSString>>,
    ) -> Self
       where Self: Sized + FromId { ... }
    fn m_orthography_with_dominant_script(
        script: NSString,
        map: NSDictionary<NSString, NSArray<NSString>>,
    ) -> Self
       where Self: Sized + FromId { ... }
    fn p_language_map(&self) -> NSDictionary<NSString, NSArray<NSString>> { ... }
    fn p_dominant_language(&self) -> NSString { ... }
    fn p_dominant_script(&self) -> NSString { ... }
    fn m_dominant_language_for_script(&self, script: NSString) -> NSString { ... }
    fn m_languages_for_script(&self, script: NSString) -> NSArray<NSString> { ... }
    fn p_all_scripts(&self) -> NSArray<NSString> { ... }
    fn p_all_languages(&self) -> NSArray<NSString> { ... }
    fn m_init_with_coder(&mut self, coder: NSCoder) -> Self
       where Self: Sized + FromId { ... }
}
Expand description

A trait containing all the methods for NSOrthography

Provided Methods§

Source

fn m_default_orthography_for_language(language: NSString) -> Self
where Self: Sized + FromId,

Creates and returns an orthography object with the default language map for the specified language.

Source

fn m_init_with_dominant_script_language_map( &mut self, script: NSString, map: NSDictionary<NSString, NSArray<NSString>>, ) -> Self
where Self: Sized + FromId,

Creates an orthography object with the specified dominant script and language map.

Source

fn m_orthography_with_dominant_script( script: NSString, map: NSDictionary<NSString, NSArray<NSString>>, ) -> Self
where Self: Sized + FromId,

Creates and returns an orthography object with the specified dominant script and language map.

Source

fn p_language_map(&self) -> NSDictionary<NSString, NSArray<NSString>>

A dictionary that maps script tags to arrays of language tags.

Source

fn p_dominant_language(&self) -> NSString

The first language in the list of languages for the dominant script.

Source

fn p_dominant_script(&self) -> NSString

The dominant script for the text.

Source

fn m_dominant_language_for_script(&self, script: NSString) -> NSString

Returns the dominant language for the specified script.

Source

fn m_languages_for_script(&self, script: NSString) -> NSArray<NSString>

Returns the list of languages for the specified script.

Source

fn p_all_scripts(&self) -> NSArray<NSString>

The scripts appearing as keys in the language map.

Source

fn p_all_languages(&self) -> NSArray<NSString>

The languages appearing in values of the language map.

Source

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

Initialize with NSCoder

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§