ICNContactFormatter

Trait ICNContactFormatter 

Source
pub trait ICNContactFormatter: INSFormatter {
    // Provided methods
    fn m_attributed_string_from_contact_default_attributes<K, V>(
        &self,
        contact: CNContact,
        attributes: NSDictionary<K, V>,
    ) -> Option<NSAttributedString> { ... }
    fn m_attributed_string_from_contact_style_default_attributes<K, V>(
        contact: CNContact,
        style: CNContactFormatterStyle,
        attributes: NSDictionary<K, V>,
    ) -> Option<NSAttributedString> { ... }
    fn m_string_from_contact(&self, contact: CNContact) -> Option<NSString> { ... }
    fn m_string_from_contact_style(
        contact: CNContact,
        style: CNContactFormatterStyle,
    ) -> Option<NSString> { ... }
    fn p_style(&self) -> CNContactFormatterStyle { ... }
    fn p_set_style(&mut self) -> CNContactFormatterStyle { ... }
    fn m_descriptor_for_required_keys_for_style(
        style: CNContactFormatterStyle,
    ) -> id { ... }
    fn m_delimiter_for_contact(contact: CNContact) -> NSString { ... }
    fn m_name_order_for_contact(contact: CNContact) -> CNContactDisplayNameOrder { ... }
    fn p_descriptor_for_required_keys_for_delimiter() -> id { ... }
    fn p_descriptor_for_required_keys_for_name_order() -> id { ... }
}
Expand description

A trait containing all the methods for CNContactFormatter

Provided Methods§

Source

fn m_attributed_string_from_contact_default_attributes<K, V>( &self, contact: CNContact, attributes: NSDictionary<K, V>, ) -> Option<NSAttributedString>

Formats the contact name as an attributed string.

Source

fn m_attributed_string_from_contact_style_default_attributes<K, V>( contact: CNContact, style: CNContactFormatterStyle, attributes: NSDictionary<K, V>, ) -> Option<NSAttributedString>

Formats the contact name as an attributed string.

Source

fn m_string_from_contact(&self, contact: CNContact) -> Option<NSString>

Formats the contact name.

Source

fn m_string_from_contact_style( contact: CNContact, style: CNContactFormatterStyle, ) -> Option<NSString>

Returns the contact name, formatted with the specified formatter.

Source

fn p_style(&self) -> CNContactFormatterStyle

The formatting style for the contact name.

Source

fn p_set_style(&mut self) -> CNContactFormatterStyle

Sets the formatting style for the contact name.

Source

fn m_descriptor_for_required_keys_for_style( style: CNContactFormatterStyle, ) -> id

Returns the required key descriptor for the specified formatting style of the contact.

Source

fn m_delimiter_for_contact(contact: CNContact) -> NSString

Returns the delimiter to use between name components.

Source

fn m_name_order_for_contact(contact: CNContact) -> CNContactDisplayNameOrder

Returns the display name order.

Source

fn p_descriptor_for_required_keys_for_delimiter() -> id

Source

fn p_descriptor_for_required_keys_for_name_order() -> id

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§