Struct objc2_foundation::NSMapTableKeyCallBacks
source · #[repr(C)]pub struct NSMapTableKeyCallBacks {
pub hash: Option<unsafe extern "C" fn(_: NonNull<NSMapTable>, _: NonNull<c_void>) -> NSUInteger>,
pub isEqual: Option<unsafe extern "C" fn(_: NonNull<NSMapTable>, _: NonNull<c_void>, _: NonNull<c_void>) -> Bool>,
pub retain: Option<unsafe extern "C" fn(_: NonNull<NSMapTable>, _: NonNull<c_void>)>,
pub release: Option<unsafe extern "C" fn(_: NonNull<NSMapTable>, _: NonNull<c_void>)>,
pub describe: Option<unsafe extern "C" fn(_: NonNull<NSMapTable>, _: NonNull<c_void>) -> *mut NSString>,
pub notAKeyMarker: *mut c_void,
}
Available on crate features
NSMapTable
and NSString
only.Fields§
§hash: Option<unsafe extern "C" fn(_: NonNull<NSMapTable>, _: NonNull<c_void>) -> NSUInteger>
§isEqual: Option<unsafe extern "C" fn(_: NonNull<NSMapTable>, _: NonNull<c_void>, _: NonNull<c_void>) -> Bool>
§retain: Option<unsafe extern "C" fn(_: NonNull<NSMapTable>, _: NonNull<c_void>)>
§release: Option<unsafe extern "C" fn(_: NonNull<NSMapTable>, _: NonNull<c_void>)>
§describe: Option<unsafe extern "C" fn(_: NonNull<NSMapTable>, _: NonNull<c_void>) -> *mut NSString>
§notAKeyMarker: *mut c_void
Trait Implementations§
source§impl Clone for NSMapTableKeyCallBacks
impl Clone for NSMapTableKeyCallBacks
source§fn clone(&self) -> NSMapTableKeyCallBacks
fn clone(&self) -> NSMapTableKeyCallBacks
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 NSMapTableKeyCallBacks
impl Debug for NSMapTableKeyCallBacks
source§impl Encode for NSMapTableKeyCallBacks
impl Encode for NSMapTableKeyCallBacks
source§impl PartialEq for NSMapTableKeyCallBacks
impl PartialEq for NSMapTableKeyCallBacks
source§fn eq(&self, other: &NSMapTableKeyCallBacks) -> bool
fn eq(&self, other: &NSMapTableKeyCallBacks) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RefEncode for NSMapTableKeyCallBacks
impl RefEncode for NSMapTableKeyCallBacks
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 NSMapTableKeyCallBacks
impl StructuralPartialEq for NSMapTableKeyCallBacks
Auto Trait Implementations§
impl Freeze for NSMapTableKeyCallBacks
impl RefUnwindSafe for NSMapTableKeyCallBacks
impl !Send for NSMapTableKeyCallBacks
impl !Sync for NSMapTableKeyCallBacks
impl Unpin for NSMapTableKeyCallBacks
impl UnwindSafe for NSMapTableKeyCallBacks
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.