Skip to main content

CKRecordKeyValueSetting

Trait CKRecordKeyValueSetting 

Source
pub unsafe trait CKRecordKeyValueSetting: NSObjectProtocol {
    // Provided methods
    unsafe fn objectForKey(
        &self,
        key: &CKRecordFieldKey,
    ) -> Option<Retained<ProtocolObject<dyn CKRecordValue>>>
       where Self: Sized + Message { ... }
    unsafe fn setObject_forKey(
        &self,
        object: Option<&ProtocolObject<dyn CKRecordValue>>,
        key: &CKRecordFieldKey,
    )
       where Self: Sized + Message { ... }
    unsafe fn objectForKeyedSubscript(
        &self,
        key: &CKRecordFieldKey,
    ) -> Option<Retained<ProtocolObject<dyn CKRecordValue>>>
       where Self: Sized + Message { ... }
    unsafe fn setObject_forKeyedSubscript(
        &self,
        object: Option<&ProtocolObject<dyn CKRecordValue>>,
        key: &CKRecordFieldKey,
    )
       where Self: Sized + Message { ... }
    unsafe fn allKeys(&self) -> Retained<NSArray<CKRecordFieldKey>>
       where Self: Sized + Message { ... }
    unsafe fn changedKeys(&self) -> Retained<NSArray<CKRecordFieldKey>>
       where Self: Sized + Message { ... }
}
Available on crate feature CKRecord only.
Expand description

Formalizes a protocol for getting and setting keys on a CKRecord. Not intended to be used directly by client code

See also Apple’s documentation

Provided Methods§

Source

unsafe fn objectForKey( &self, key: &CKRecordFieldKey, ) -> Option<Retained<ProtocolObject<dyn CKRecordValue>>>
where Self: Sized + Message,

Source

unsafe fn setObject_forKey( &self, object: Option<&ProtocolObject<dyn CKRecordValue>>, key: &CKRecordFieldKey, )
where Self: Sized + Message,

Source

unsafe fn objectForKeyedSubscript( &self, key: &CKRecordFieldKey, ) -> Option<Retained<ProtocolObject<dyn CKRecordValue>>>
where Self: Sized + Message,

Source

unsafe fn setObject_forKeyedSubscript( &self, object: Option<&ProtocolObject<dyn CKRecordValue>>, key: &CKRecordFieldKey, )
where Self: Sized + Message,

Source

unsafe fn allKeys(&self) -> Retained<NSArray<CKRecordFieldKey>>
where Self: Sized + Message,

Source

unsafe fn changedKeys(&self) -> Retained<NSArray<CKRecordFieldKey>>
where Self: Sized + Message,

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn CKRecordKeyValueSetting

Source§

impl ProtocolType for dyn CKRecordKeyValueSetting

Source§

const NAME: &'static str = "CKRecordKeyValueSetting"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> CKRecordKeyValueSetting for ProtocolObject<T>

Implementors§