Struct objc2_foundation::NSDictionary

source ·
#[repr(C)]
pub struct NSDictionary<KeyType: ?Sized = AnyObject, ObjectType: ?Sized = AnyObject> { /* private fields */ }
Available on crate feature NSDictionary only.

Implementations§

source§

impl<K: Message + Eq + Hash + HasStableHash, V: Message> NSDictionary<K, V>

source

pub fn from_vec<Q>(keys: &[&Q], objects: Vec<Id<V>>) -> Id<Self>
where Q: Message + NSCopying + CounterpartOrSelf<Immutable = K>,

Available on crate feature NSObject only.
source

pub fn from_id_slice<Q>(keys: &[&Q], objects: &[Id<V>]) -> Id<Self>
where Q: Message + NSCopying + CounterpartOrSelf<Immutable = K>, V: IsIdCloneable,

Available on crate feature NSObject only.
source

pub fn from_slice<Q>(keys: &[&Q], objects: &[&V]) -> Id<Self>
where Q: Message + NSCopying + CounterpartOrSelf<Immutable = K>, V: IsRetainable,

Available on crate feature NSObject only.
source§

impl<K: Message + Eq + Hash, V: Message> NSDictionary<K, V>

source

pub fn get(&self, key: &K) -> Option<&V>

source

pub fn get_retained(&self, key: &K) -> Option<Id<V>>
where V: IsIdCloneable,

source

pub fn get_mut(&mut self, key: &K) -> Option<&mut V>
where V: IsMutable,

Returns a mutable reference to the value corresponding to the key.

§Examples
 use objc2_foundation::{ns_string, NSMutableDictionary, NSMutableString, NSString};

 let mut dict = NSMutableDictionary::new();
 dict.insert_id(ns_string!("one"), NSMutableString::new());
 println!("{:?}", dict.get_mut(ns_string!("one")));
source§

impl<K: Message, V: Message> NSDictionary<K, V>

source

pub fn len(&self) -> usize

source

pub fn is_empty(&self) -> bool

source

pub fn keys_vec(&self) -> Vec<&K>

source

pub fn values_vec(&self) -> Vec<&V>

source

pub fn values_vec_mut(&mut self) -> Vec<&mut V>
where V: IsMutable,

Returns a vector of mutable references to the values in the dictionary.

§Examples
use objc2_foundation::{ns_string, NSMutableDictionary, NSMutableString, NSString};

let mut dict = NSMutableDictionary::new();
dict.insert_id(ns_string!("one"), NSMutableString::from_str("two"));
for val in dict.values_mut() {
    println!("{:?}", val);
}
source

pub fn to_vecs(&self) -> (Vec<&K>, Vec<&V>)

source

pub fn to_array(&self) -> Id<NSArray<V>>
where V: IsIdCloneable,

Available on crate feature NSArray only.

Returns an NSArray containing the dictionary’s values.

§Examples
use objc2_foundation::{ns_string, NSMutableDictionary, NSObject, NSString};

let mut dict = NSMutableDictionary::new();
dict.insert_id(ns_string!("one"), NSObject::new());
let array = dict.to_array();
assert_eq!(array.len(), 1);
source§

impl<K: Message, V: Message> NSDictionary<K, V>

source

pub fn keys(&self) -> Keys<'_, K, V>

Available on crate feature NSEnumerator only.
source

pub fn keys_retained(&self) -> KeysRetained<'_, K, V>
where K: IsIdCloneable,

Available on crate feature NSEnumerator only.
source

pub fn values(&self) -> Values<'_, K, V>

Available on crate feature NSEnumerator only.
source

pub fn values_mut(&mut self) -> ValuesMut<'_, K, V>
where V: IsMutable,

Available on crate feature NSEnumerator only.
source

pub fn values_retained(&self) -> ValuesRetained<'_, K, V>
where V: IsIdCloneable,

Available on crate feature NSEnumerator only.
source

pub fn into_values(this: Id<Self>) -> IntoValues<K, V>
where V: IsIdCloneable,

Available on crate feature NSEnumerator only.
source§

impl<KeyType: Message, ObjectType: Message> NSDictionary<KeyType, ObjectType>

source

pub fn count(&self) -> NSUInteger

source

pub unsafe fn objectForKey(&self, a_key: &KeyType) -> Option<Id<ObjectType>>

source

pub unsafe fn keyEnumerator(&self) -> Id<NSEnumerator<KeyType>>

Available on crate feature NSEnumerator only.
source

pub fn init(this: Allocated<Self>) -> Id<Self>

source

pub unsafe fn initWithObjects_forKeys_count( this: Allocated<Self>, objects: *mut NonNull<ObjectType>, keys: *mut NonNull<ProtocolObject<dyn NSCopying>>, cnt: NSUInteger ) -> Id<Self>

Available on crate feature NSObject only.
source

pub unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder ) -> Option<Id<Self>>

Available on crate feature NSCoder only.
source§

impl<KeyType: Message, ObjectType: Message> NSDictionary<KeyType, ObjectType>

Methods declared on superclass NSObject

source

pub fn new() -> Id<Self>

source§

impl<KeyType: Message, ObjectType: Message> NSDictionary<KeyType, ObjectType>

NSExtendedDictionary

source

pub unsafe fn allKeys(&self) -> Id<NSArray<KeyType>>

Available on crate feature NSArray only.
source

pub unsafe fn allKeysForObject( &self, an_object: &ObjectType ) -> Id<NSArray<KeyType>>

Available on crate feature NSArray only.
source

pub unsafe fn allValues(&self) -> Id<NSArray<ObjectType>>

Available on crate feature NSArray only.
source

pub unsafe fn description(&self) -> Id<NSString>

Available on crate feature NSString only.
source

pub unsafe fn descriptionInStringsFileFormat(&self) -> Id<NSString>

Available on crate feature NSString only.
source

pub unsafe fn descriptionWithLocale( &self, locale: Option<&AnyObject> ) -> Id<NSString>

Available on crate feature NSString only.
source

pub unsafe fn descriptionWithLocale_indent( &self, locale: Option<&AnyObject>, level: NSUInteger ) -> Id<NSString>

Available on crate feature NSString only.
source

pub unsafe fn isEqualToDictionary( &self, other_dictionary: &NSDictionary<KeyType, ObjectType> ) -> bool

source

pub unsafe fn objectEnumerator(&self) -> Id<NSEnumerator<ObjectType>>

Available on crate feature NSEnumerator only.
source

pub unsafe fn objectsForKeys_notFoundMarker( &self, keys: &NSArray<KeyType>, marker: &ObjectType ) -> Id<NSArray<ObjectType>>

Available on crate feature NSArray only.
source

pub unsafe fn writeToURL_error(&self, url: &NSURL) -> Result<(), Id<NSError>>

Available on crate features NSError and NSURL only.
source

pub unsafe fn keysSortedByValueUsingSelector( &self, comparator: Sel ) -> Id<NSArray<KeyType>>

Available on crate feature NSArray only.
source

pub unsafe fn getObjects_andKeys_count( &self, objects: *mut NonNull<ObjectType>, keys: *mut NonNull<KeyType>, count: NSUInteger )

source

pub unsafe fn objectForKeyedSubscript( &self, key: &KeyType ) -> Option<Id<ObjectType>>

source

pub unsafe fn enumerateKeysAndObjectsUsingBlock( &self, block: &Block<dyn Fn(NonNull<KeyType>, NonNull<ObjectType>, NonNull<Bool>) + '_> )

Available on crate feature block2 only.
source

pub unsafe fn enumerateKeysAndObjectsWithOptions_usingBlock( &self, opts: NSEnumerationOptions, block: &Block<dyn Fn(NonNull<KeyType>, NonNull<ObjectType>, NonNull<Bool>) + '_> )

Available on crate features NSObjCRuntime and block2 only.
source

pub unsafe fn keysSortedByValueUsingComparator( &self, cmptr: NSComparator ) -> Id<NSArray<KeyType>>

Available on crate features NSArray and NSObjCRuntime and block2 only.
source

pub unsafe fn keysSortedByValueWithOptions_usingComparator( &self, opts: NSSortOptions, cmptr: NSComparator ) -> Id<NSArray<KeyType>>

Available on crate features NSArray and NSObjCRuntime and block2 only.
source

pub unsafe fn keysOfEntriesPassingTest( &self, predicate: &Block<dyn Fn(NonNull<KeyType>, NonNull<ObjectType>, NonNull<Bool>) -> Bool + '_> ) -> Id<NSSet<KeyType>>

Available on crate features NSSet and block2 only.
source

pub unsafe fn keysOfEntriesWithOptions_passingTest( &self, opts: NSEnumerationOptions, predicate: &Block<dyn Fn(NonNull<KeyType>, NonNull<ObjectType>, NonNull<Bool>) -> Bool + '_> ) -> Id<NSSet<KeyType>>

Available on crate features NSObjCRuntime and NSSet and block2 only.
source§

impl<KeyType: Message, ObjectType: Message> NSDictionary<KeyType, ObjectType>

NSDeprecated

source

pub unsafe fn getObjects_andKeys( &self, objects: *mut NonNull<ObjectType>, keys: *mut NonNull<KeyType> )

👎Deprecated: Use -getObjects:andKeys:count: instead
source

pub unsafe fn dictionaryWithContentsOfFile( path: &NSString ) -> Option<Id<NSDictionary<KeyType, ObjectType>>>

👎Deprecated
Available on crate feature NSString only.
source

pub unsafe fn dictionaryWithContentsOfURL( url: &NSURL ) -> Option<Id<NSDictionary<KeyType, ObjectType>>>

👎Deprecated
Available on crate feature NSURL only.
source

pub unsafe fn initWithContentsOfFile( this: Allocated<Self>, path: &NSString ) -> Option<Id<NSDictionary<KeyType, ObjectType>>>

👎Deprecated
Available on crate feature NSString only.
source

pub unsafe fn initWithContentsOfURL( this: Allocated<Self>, url: &NSURL ) -> Option<Id<NSDictionary<KeyType, ObjectType>>>

👎Deprecated
Available on crate feature NSURL only.
source

pub unsafe fn writeToFile_atomically( &self, path: &NSString, use_auxiliary_file: bool ) -> bool

👎Deprecated
Available on crate feature NSString only.
source

pub unsafe fn writeToURL_atomically( &self, url: &NSURL, atomically: bool ) -> bool

👎Deprecated
Available on crate feature NSURL only.
source§

impl<KeyType: Message, ObjectType: Message> NSDictionary<KeyType, ObjectType>

NSDictionaryCreation

source

pub unsafe fn dictionary() -> Id<Self>

source

pub unsafe fn dictionaryWithObject_forKey( object: &ObjectType, key: &ProtocolObject<dyn NSCopying> ) -> Id<Self>

Available on crate feature NSObject only.
source

pub unsafe fn dictionaryWithObjects_forKeys_count( objects: *mut NonNull<ObjectType>, keys: *mut NonNull<ProtocolObject<dyn NSCopying>>, cnt: NSUInteger ) -> Id<Self>

Available on crate feature NSObject only.
source

pub unsafe fn dictionaryWithDictionary( dict: &NSDictionary<KeyType, ObjectType> ) -> Id<Self>

source

pub unsafe fn dictionaryWithObjects_forKeys( objects: &NSArray<ObjectType>, keys: &NSArray<ProtocolObject<dyn NSCopying>> ) -> Id<Self>

Available on crate features NSArray and NSObject only.
source

pub unsafe fn initWithDictionary( this: Allocated<Self>, other_dictionary: &NSDictionary<KeyType, ObjectType> ) -> Id<Self>

source

pub unsafe fn initWithDictionary_copyItems( this: Allocated<Self>, other_dictionary: &NSDictionary<KeyType, ObjectType>, flag: bool ) -> Id<Self>

source

pub unsafe fn initWithObjects_forKeys( this: Allocated<Self>, objects: &NSArray<ObjectType>, keys: &NSArray<ProtocolObject<dyn NSCopying>> ) -> Id<Self>

Available on crate features NSArray and NSObject only.
source§

impl<KeyType: Message, ObjectType: Message> NSDictionary<KeyType, ObjectType>

NSSharedKeySetDictionary

source

pub unsafe fn sharedKeySetForKeys( keys: &NSArray<ProtocolObject<dyn NSCopying>> ) -> Id<AnyObject>

Available on crate features NSArray and NSObject only.
source§

impl<KeyType: Message, ObjectType: Message> NSDictionary<KeyType, ObjectType>

NSFileAttributes

source

pub unsafe fn fileSize(&self) -> c_ulonglong

Available on crate feature NSFileManager only.
source

pub unsafe fn fileModificationDate(&self) -> Option<Id<NSDate>>

Available on crate features NSFileManager and NSDate only.
source

pub unsafe fn fileType(&self) -> Option<Id<NSString>>

Available on crate features NSFileManager and NSString only.
source

pub unsafe fn filePosixPermissions(&self) -> NSUInteger

Available on crate feature NSFileManager only.
source

pub unsafe fn fileOwnerAccountName(&self) -> Option<Id<NSString>>

Available on crate features NSFileManager and NSString only.
source

pub unsafe fn fileGroupOwnerAccountName(&self) -> Option<Id<NSString>>

Available on crate features NSFileManager and NSString only.
source

pub unsafe fn fileSystemNumber(&self) -> NSInteger

Available on crate feature NSFileManager only.
source

pub unsafe fn fileSystemFileNumber(&self) -> NSUInteger

Available on crate feature NSFileManager only.
source

pub unsafe fn fileExtensionHidden(&self) -> bool

Available on crate feature NSFileManager only.
source

pub unsafe fn fileHFSCreatorCode(&self) -> OSType

Available on crate feature NSFileManager only.
source

pub unsafe fn fileHFSTypeCode(&self) -> OSType

Available on crate feature NSFileManager only.
source

pub unsafe fn fileIsImmutable(&self) -> bool

Available on crate feature NSFileManager only.
source

pub unsafe fn fileIsAppendOnly(&self) -> bool

Available on crate feature NSFileManager only.
source

pub unsafe fn fileCreationDate(&self) -> Option<Id<NSDate>>

Available on crate features NSFileManager and NSDate only.
source

pub unsafe fn fileOwnerAccountID(&self) -> Option<Id<NSNumber>>

Available on crate features NSFileManager and NSValue only.
source

pub unsafe fn fileGroupOwnerAccountID(&self) -> Option<Id<NSNumber>>

Available on crate features NSFileManager and NSValue only.
source§

impl<KeyType: Message, ObjectType: Message> NSDictionary<KeyType, ObjectType>

NSKeyValueCoding

source

pub unsafe fn valueForKey(&self, key: &NSString) -> Option<Id<ObjectType>>

Available on crate features NSKeyValueCoding and NSString only.

Methods from Deref<Target = NSObject>§

source

pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !

Handle messages the object doesn’t recognize.

See Apple’s documentation for details.

Methods from Deref<Target = AnyObject>§

source

pub fn class(&self) -> &'static AnyClass

Dynamically find the class of this object.

§Example

Check that an instance of NSObject has the precise class NSObject.

use objc2::ClassType;
use objc2::runtime::NSObject;

let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());
source

pub unsafe fn get_ivar<T>(&self, name: &str) -> &T
where T: Encode,

👎Deprecated: this is difficult to use correctly, use Ivar::load instead.

Use Ivar::load instead.

§Safety

The object must have an instance variable with the given name, and it must be of type T.

See Ivar::load_ptr for details surrounding this.

source

pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut T
where T: Encode,

👎Deprecated: this is difficult to use correctly, use Ivar::load_mut instead.

Use Ivar::load_mut instead.

§Safety

The object must have an instance variable with the given name, and it must be of type T.

See Ivar::load_ptr for details surrounding this.

Trait Implementations§

source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsMut<AnyObject> for NSDictionary<KeyType, ObjectType>

source§

fn as_mut(&mut self) -> &mut AnyObject

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsMut<NSDictionary<KeyType, ObjectType>> for NSDictionary<KeyType, ObjectType>

source§

fn as_mut(&mut self) -> &mut Self

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsMut<NSDictionary<KeyType, ObjectType>> for NSMutableDictionary<KeyType, ObjectType>

source§

fn as_mut(&mut self) -> &mut NSDictionary<KeyType, ObjectType>

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsMut<NSObject> for NSDictionary<KeyType, ObjectType>

source§

fn as_mut(&mut self) -> &mut NSObject

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsRef<AnyObject> for NSDictionary<KeyType, ObjectType>

source§

fn as_ref(&self) -> &AnyObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsRef<NSDictionary<KeyType, ObjectType>> for NSDictionary<KeyType, ObjectType>

source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsRef<NSDictionary<KeyType, ObjectType>> for NSMutableDictionary<KeyType, ObjectType>

source§

fn as_ref(&self) -> &NSDictionary<KeyType, ObjectType>

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsRef<NSObject> for NSDictionary<KeyType, ObjectType>

source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> Borrow<AnyObject> for NSDictionary<KeyType, ObjectType>

source§

fn borrow(&self) -> &AnyObject

Immutably borrows from an owned value. Read more
source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> Borrow<NSDictionary<KeyType, ObjectType>> for NSMutableDictionary<KeyType, ObjectType>

source§

fn borrow(&self) -> &NSDictionary<KeyType, ObjectType>

Immutably borrows from an owned value. Read more
source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> Borrow<NSObject> for NSDictionary<KeyType, ObjectType>

source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> BorrowMut<AnyObject> for NSDictionary<KeyType, ObjectType>

source§

fn borrow_mut(&mut self) -> &mut AnyObject

Mutably borrows from an owned value. Read more
source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> BorrowMut<NSDictionary<KeyType, ObjectType>> for NSMutableDictionary<KeyType, ObjectType>

source§

fn borrow_mut(&mut self) -> &mut NSDictionary<KeyType, ObjectType>

Mutably borrows from an owned value. Read more
source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> BorrowMut<NSObject> for NSDictionary<KeyType, ObjectType>

source§

fn borrow_mut(&mut self) -> &mut NSObject

Mutably borrows from an owned value. Read more
source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> ClassType for NSDictionary<KeyType, ObjectType>

§

type Super = NSObject

The superclass of this class. Read more
§

type Mutability = ImmutableWithMutableSubclass<NSMutableDictionary<KeyType, ObjectType>>

Whether the type is mutable or immutable. Read more
source§

const NAME: &'static str = "NSDictionary"

The name of the Objective-C class that this type represents. Read more
source§

fn class() -> &'static AnyClass

Get a reference to the Objective-C class that this type represents. Read more
source§

fn as_super(&self) -> &Self::Super

Get an immutable reference to the superclass.
source§

fn as_super_mut(&mut self) -> &mut Self::Super

Get a mutable reference to the superclass.
source§

fn alloc() -> Allocated<Self>

Allocate a new instance of the class. Read more
source§

impl<K: Debug + Message, V: Debug + Message> Debug for NSDictionary<K, V>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<KeyType: Message, ObjectType: Message> DefaultId for NSDictionary<KeyType, ObjectType>

source§

fn default_id() -> Id<Self>

The default Id for a type. Read more
source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> Deref for NSDictionary<KeyType, ObjectType>

§

type Target = NSObject

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> DerefMut for NSDictionary<KeyType, ObjectType>

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl<KeyType: Hash + ?Sized, ObjectType: Hash + ?Sized> Hash for NSDictionary<KeyType, ObjectType>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'a, K: Message + Eq + Hash, V: Message> Index<&'a K> for NSDictionary<K, V>

§

type Output = V

The returned type after indexing.
source§

fn index<'s>(&'s self, index: &'a K) -> &'s V

Performs the indexing (container[index]) operation. Read more
source§

impl<'a, K: Message + Eq + Hash, V: Message + IsMutable> IndexMut<&'a K> for NSDictionary<K, V>

source§

fn index_mut<'s>(&'s mut self, index: &'a K) -> &'s mut V

Performs the mutable indexing (container[index]) operation. Read more
source§

impl<KeyType: PartialEq + ?Sized, ObjectType: PartialEq + ?Sized> PartialEq for NSDictionary<KeyType, ObjectType>

source§

fn eq(&self, other: &NSDictionary<KeyType, ObjectType>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> RefEncode for NSDictionary<KeyType, ObjectType>

source§

const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF

The Objective-C type-encoding for a reference of this type. Read more
source§

impl<KeyType: Eq + ?Sized, ObjectType: Eq + ?Sized> Eq for NSDictionary<KeyType, ObjectType>

source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> Message for NSDictionary<KeyType, ObjectType>

source§

impl<KeyType: ?Sized + NSCoding, ObjectType: ?Sized + NSCoding> NSCoding for NSDictionary<KeyType, ObjectType>

Available on crate feature NSObject only.
source§

impl<KeyType: ?Sized + IsIdCloneable, ObjectType: ?Sized + IsIdCloneable> NSCopying for NSDictionary<KeyType, ObjectType>

Available on crate feature NSObject only.
source§

impl<KeyType: ?Sized, ObjectType: ?Sized> NSFastEnumeration for NSDictionary<KeyType, ObjectType>

Available on crate feature NSEnumerator only.
source§

impl<KeyType: ?Sized + IsIdCloneable, ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSDictionary<KeyType, ObjectType>

Available on crate feature NSObject only.
source§

impl<KeyType: ?Sized, ObjectType: ?Sized> NSObjectProtocol for NSDictionary<KeyType, ObjectType>

source§

impl<KeyType: ?Sized + NSSecureCoding, ObjectType: ?Sized + NSSecureCoding> NSSecureCoding for NSDictionary<KeyType, ObjectType>

Available on crate feature NSObject only.
source§

impl<KeyType: ?Sized, ObjectType: ?Sized> StructuralPartialEq for NSDictionary<KeyType, ObjectType>

Auto Trait Implementations§

§

impl<KeyType = AnyObject, ObjectType = AnyObject> !Freeze for NSDictionary<KeyType, ObjectType>

§

impl<KeyType, ObjectType> RefUnwindSafe for NSDictionary<KeyType, ObjectType>
where KeyType: RefUnwindSafe + ?Sized, ObjectType: RefUnwindSafe + ?Sized,

§

impl<KeyType, ObjectType> Send for NSDictionary<KeyType, ObjectType>
where KeyType: ClassType + Send + ?Sized, ObjectType: ClassType + Send + ?Sized, <KeyType as ClassType>::Mutability: IdSendSyncHelper<KeyType>, <ObjectType as ClassType>::Mutability: IdSendSyncHelper<ObjectType>, <<KeyType as ClassType>::Mutability as IdSendSyncHelper<KeyType>>::EquivalentType: Send, <<ObjectType as ClassType>::Mutability as IdSendSyncHelper<ObjectType>>::EquivalentType: Send,

§

impl<KeyType, ObjectType> Sync for NSDictionary<KeyType, ObjectType>
where KeyType: ClassType + Sync + ?Sized, ObjectType: ClassType + Sync + ?Sized, <KeyType as ClassType>::Mutability: IdSendSyncHelper<KeyType>, <ObjectType as ClassType>::Mutability: IdSendSyncHelper<ObjectType>, <<KeyType as ClassType>::Mutability as IdSendSyncHelper<KeyType>>::EquivalentType: Sync, <<ObjectType as ClassType>::Mutability as IdSendSyncHelper<ObjectType>>::EquivalentType: Sync,

§

impl<KeyType = AnyObject, ObjectType = AnyObject> !Unpin for NSDictionary<KeyType, ObjectType>

§

impl<KeyType, ObjectType> UnwindSafe for NSDictionary<KeyType, ObjectType>
where KeyType: RefUnwindSafe + UnwindSafe + ?Sized, ObjectType: RefUnwindSafe + UnwindSafe + ?Sized,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,