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§
Sourcefn m_attributed_string_from_contact_default_attributes<K, V>(
&self,
contact: CNContact,
attributes: NSDictionary<K, V>,
) -> Option<NSAttributedString>
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.
Sourcefn m_attributed_string_from_contact_style_default_attributes<K, V>(
contact: CNContact,
style: CNContactFormatterStyle,
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>
Formats the contact name as an attributed string.
Sourcefn m_string_from_contact(&self, contact: CNContact) -> Option<NSString>
fn m_string_from_contact(&self, contact: CNContact) -> Option<NSString>
Formats the contact name.
Sourcefn m_string_from_contact_style(
contact: CNContact,
style: CNContactFormatterStyle,
) -> Option<NSString>
fn m_string_from_contact_style( contact: CNContact, style: CNContactFormatterStyle, ) -> Option<NSString>
Returns the contact name, formatted with the specified formatter.
Sourcefn p_style(&self) -> CNContactFormatterStyle
fn p_style(&self) -> CNContactFormatterStyle
The formatting style for the contact name.
Sourcefn p_set_style(&mut self) -> CNContactFormatterStyle
fn p_set_style(&mut self) -> CNContactFormatterStyle
Sets the formatting style for the contact name.
Sourcefn m_descriptor_for_required_keys_for_style(
style: CNContactFormatterStyle,
) -> id
fn m_descriptor_for_required_keys_for_style( style: CNContactFormatterStyle, ) -> id
Returns the required key descriptor for the specified formatting style of the contact.
Sourcefn m_delimiter_for_contact(contact: CNContact) -> NSString
fn m_delimiter_for_contact(contact: CNContact) -> NSString
Returns the delimiter to use between name components.
Sourcefn m_name_order_for_contact(contact: CNContact) -> CNContactDisplayNameOrder
fn m_name_order_for_contact(contact: CNContact) -> CNContactDisplayNameOrder
Returns the display name order.
fn p_descriptor_for_required_keys_for_delimiter() -> id
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.