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