#[repr(C)]pub struct CFDictionaryValueCallBacks {
pub version: CFIndex,
pub retain: CFDictionaryRetainCallBack,
pub release: CFDictionaryReleaseCallBack,
pub copyDescription: CFDictionaryCopyDescriptionCallBack,
pub equal: CFDictionaryEqualCallBack,
}
CFDictionary
only.Expand description
Structure containing the callbacks for values of a CFDictionary. Field: version The version number of the structure type being passed in as a parameter to the CFDictionary creation functions. This structure is version 0. Field: retain The callback used to add a retain for the dictionary on values as they are put into the dictionary. This callback returns the value to use as the value in the dictionary, which is usually the value parameter passed to this callback, but may be a different value if a different value should be added to the dictionary. The dictionary’s allocator is passed as the first argument. Field: release The callback used to remove a retain previously added for the dictionary from values as they are removed from the dictionary. The dictionary’s allocator is passed as the first argument. Field: copyDescription The callback used to create a descriptive string representation of each value in the dictionary. This is used by the CFCopyDescription() function. Field: equal The callback used to compare values in the dictionary for equality in some operations.
See also Apple’s documentation
Fields§
§version: CFIndex
§retain: CFDictionaryRetainCallBack
§release: CFDictionaryReleaseCallBack
§copyDescription: CFDictionaryCopyDescriptionCallBack
§equal: CFDictionaryEqualCallBack
Trait Implementations§
Source§impl Clone for CFDictionaryValueCallBacks
impl Clone for CFDictionaryValueCallBacks
Source§fn clone(&self) -> CFDictionaryValueCallBacks
fn clone(&self) -> CFDictionaryValueCallBacks
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CFDictionaryValueCallBacks
impl Debug for CFDictionaryValueCallBacks
Source§impl Encode for CFDictionaryValueCallBacks
Available on crate feature objc2
only.
impl Encode for CFDictionaryValueCallBacks
objc2
only.Source§impl RefEncode for CFDictionaryValueCallBacks
Available on crate feature objc2
only.
impl RefEncode for CFDictionaryValueCallBacks
objc2
only.