Struct objc2_foundation::NSHashTableCallBacks
source · #[repr(C)]pub struct NSHashTableCallBacks {
pub hash: Option<unsafe extern "C" fn(_: NonNull<NSHashTable>, _: NonNull<c_void>) -> NSUInteger>,
pub isEqual: Option<unsafe extern "C" fn(_: NonNull<NSHashTable>, _: NonNull<c_void>, _: NonNull<c_void>) -> Bool>,
pub retain: Option<unsafe extern "C" fn(_: NonNull<NSHashTable>, _: NonNull<c_void>)>,
pub release: Option<unsafe extern "C" fn(_: NonNull<NSHashTable>, _: NonNull<c_void>)>,
pub describe: Option<unsafe extern "C" fn(_: NonNull<NSHashTable>, _: NonNull<c_void>) -> *mut NSString>,
}
Available on crate features
NSHashTable
and NSString
only.Fields§
§hash: Option<unsafe extern "C" fn(_: NonNull<NSHashTable>, _: NonNull<c_void>) -> NSUInteger>
§isEqual: Option<unsafe extern "C" fn(_: NonNull<NSHashTable>, _: NonNull<c_void>, _: NonNull<c_void>) -> Bool>
§retain: Option<unsafe extern "C" fn(_: NonNull<NSHashTable>, _: NonNull<c_void>)>
§release: Option<unsafe extern "C" fn(_: NonNull<NSHashTable>, _: NonNull<c_void>)>
§describe: Option<unsafe extern "C" fn(_: NonNull<NSHashTable>, _: NonNull<c_void>) -> *mut NSString>
Trait Implementations§
source§impl Clone for NSHashTableCallBacks
impl Clone for NSHashTableCallBacks
source§fn clone(&self) -> NSHashTableCallBacks
fn clone(&self) -> NSHashTableCallBacks
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NSHashTableCallBacks
impl Debug for NSHashTableCallBacks
source§impl Encode for NSHashTableCallBacks
impl Encode for NSHashTableCallBacks
source§impl PartialEq for NSHashTableCallBacks
impl PartialEq for NSHashTableCallBacks
source§fn eq(&self, other: &NSHashTableCallBacks) -> bool
fn eq(&self, other: &NSHashTableCallBacks) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RefEncode for NSHashTableCallBacks
impl RefEncode for NSHashTableCallBacks
source§const ENCODING_REF: Encoding = _
const ENCODING_REF: Encoding = _
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for NSHashTableCallBacks
impl StructuralPartialEq for NSHashTableCallBacks
Auto Trait Implementations§
impl Freeze for NSHashTableCallBacks
impl RefUnwindSafe for NSHashTableCallBacks
impl Send for NSHashTableCallBacks
impl Sync for NSHashTableCallBacks
impl Unpin for NSHashTableCallBacks
impl UnwindSafe for NSHashTableCallBacks
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.