#[repr(C)]pub struct CNContainer {
pub ptr: Id<Object>,
}
Expand description
An immutable object that represents a collection of contacts.
Fields§
§ptr: Id<Object>
The raw pointer to the Objective-C object.
Implementations§
Source§impl CNContainer
impl CNContainer
Sourcepub fn identifier(&self) -> NSString
pub fn identifier(&self) -> NSString
The unique identifier for a contacts container on the device.
Sourcepub fn type_(&self) -> CNContainerType
pub fn type_(&self) -> CNContainerType
The type of the container.
Sourcepub fn predicate_for_container_of_contact_identifier(
identifier: NSString,
) -> NSPredicate
pub fn predicate_for_container_of_contact_identifier( identifier: NSString, ) -> NSPredicate
Returns a predicate to find the container of the specified contact.
Sourcepub fn predicate_for_containers_with_identifiers(
identifiers: NSArray<NSString>,
) -> NSPredicate
pub fn predicate_for_containers_with_identifiers( identifiers: NSArray<NSString>, ) -> NSPredicate
Returns a predicate to find the containers with the specified identifiers.
Sourcepub fn predicate_for_container_of_group_with_identifier(
identifier: NSString,
) -> NSPredicate
pub fn predicate_for_container_of_group_with_identifier( identifier: NSString, ) -> NSPredicate
Returns a predicate to find the container of the specified group.
Methods from Deref<Target = Object>§
Sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Returns a reference to the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T
.
Sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Returns a mutable reference to the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T
.