Struct objc2_foundation::NSMutableDictionary
source · #[repr(C)]pub struct NSMutableDictionary<KeyType: ?Sized = AnyObject, ObjectType: ?Sized = AnyObject> { /* private fields */ }
NSDictionary
only.Implementations§
source§impl<K: Message + Eq + Hash + HasStableHash, V: Message> NSMutableDictionary<K, V>
impl<K: Message + Eq + Hash + HasStableHash, V: Message> NSMutableDictionary<K, V>
pub fn from_vec<Q>(keys: &[&Q], objects: Vec<Retained<V>>) -> Retained<Self>
NSObject
only.pub fn from_id_slice<Q>(keys: &[&Q], objects: &[Retained<V>]) -> Retained<Self>
NSObject
only.pub fn from_slice<Q>(keys: &[&Q], objects: &[&V]) -> Retained<Self>
NSObject
only.source§impl<K: Message + Eq + Hash + HasStableHash, V: Message> NSMutableDictionary<K, V>
impl<K: Message + Eq + Hash + HasStableHash, V: Message> NSMutableDictionary<K, V>
sourcepub fn insert_id(&mut self, key: &K, value: Retained<V>) -> Option<Retained<V>>where
K: NSCopying + CounterpartOrSelf<Immutable = K>,
Available on crate feature NSObject
only.
pub fn insert_id(&mut self, key: &K, value: Retained<V>) -> Option<Retained<V>>where
K: NSCopying + CounterpartOrSelf<Immutable = K>,
NSObject
only.Inserts a key-value pair into the dictionary.
If the dictionary did not have this key present, None is returned. If the dictionary did have this key present, the value is updated, and the old value is returned.
§Examples
use objc2_foundation::{NSMutableDictionary, NSObject, ns_string};
let mut dict = NSMutableDictionary::new();
dict.insert_id(ns_string!("one"), NSObject::new());
sourcepub fn insert(&mut self, key: &K, value: &V) -> Option<Retained<V>>
Available on crate feature NSObject
only.
pub fn insert(&mut self, key: &K, value: &V) -> Option<Retained<V>>
NSObject
only.Inserts a key-value pair into the dictionary.
If the dictionary did not have this key present, None is returned. If the dictionary did have this key present, the value is updated, and the old value is returned.
§Examples
use objc2_foundation::{ns_string, NSCopying, NSMutableDictionary};
let mut dict = NSMutableDictionary::new();
dict.insert_id(ns_string!("key"), ns_string!("value").copy());
sourcepub fn remove(&mut self, key: &K) -> Option<Retained<V>>where
K: CounterpartOrSelf<Immutable = K>,
pub fn remove(&mut self, key: &K) -> Option<Retained<V>>where
K: CounterpartOrSelf<Immutable = K>,
Removes a key from the dictionary, returning the value at the key if the key was previously in the dictionary.
§Examples
use objc2_foundation::{ns_string, NSMutableDictionary, NSObject};
let mut dict = NSMutableDictionary::new();
dict.insert_id(ns_string!("one"), NSObject::new());
dict.remove(ns_string!("one"));
assert!(dict.is_empty());
source§impl<KeyType: Message, ObjectType: Message> NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: Message, ObjectType: Message> NSMutableDictionary<KeyType, ObjectType>
Methods declared on superclass NSDictionary
NSDictionaryCreation
pub unsafe fn dictionary() -> Retained<Self>
pub unsafe fn dictionaryWithObject_forKey( object: &ObjectType, key: &ProtocolObject<dyn NSCopying> ) -> Retained<Self>
NSObject
only.pub unsafe fn dictionaryWithObjects_forKeys_count( objects: *mut NonNull<ObjectType>, keys: *mut NonNull<ProtocolObject<dyn NSCopying>>, cnt: NSUInteger ) -> Retained<Self>
NSObject
only.pub unsafe fn dictionaryWithDictionary( dict: &NSDictionary<KeyType, ObjectType> ) -> Retained<Self>
pub unsafe fn dictionaryWithObjects_forKeys( objects: &NSArray<ObjectType>, keys: &NSArray<ProtocolObject<dyn NSCopying>> ) -> Retained<Self>
NSArray
and NSObject
only.pub unsafe fn initWithDictionary( this: Allocated<Self>, other_dictionary: &NSDictionary<KeyType, ObjectType> ) -> Retained<Self>
pub unsafe fn initWithDictionary_copyItems( this: Allocated<Self>, other_dictionary: &NSDictionary<KeyType, ObjectType>, flag: bool ) -> Retained<Self>
pub unsafe fn initWithObjects_forKeys( this: Allocated<Self>, objects: &NSArray<ObjectType>, keys: &NSArray<ProtocolObject<dyn NSCopying>> ) -> Retained<Self>
NSArray
and NSObject
only.source§impl<KeyType: Message, ObjectType: Message> NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: Message, ObjectType: Message> NSMutableDictionary<KeyType, ObjectType>
pub fn removeObjectForKey(&mut self, a_key: &KeyType)
pub unsafe fn setObject_forKey( &mut self, an_object: &ObjectType, a_key: &ProtocolObject<dyn NSCopying> )
NSObject
only.pub fn init(this: Allocated<Self>) -> Retained<Self>
pub unsafe fn initWithCapacity( this: Allocated<Self>, num_items: NSUInteger ) -> Retained<Self>
pub unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder ) -> Option<Retained<Self>>
NSCoder
only.source§impl<KeyType: Message, ObjectType: Message> NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: Message, ObjectType: Message> NSMutableDictionary<KeyType, ObjectType>
Methods declared on superclass NSDictionary
pub unsafe fn initWithObjects_forKeys_count( this: Allocated<Self>, objects: *mut NonNull<ObjectType>, keys: *mut NonNull<ProtocolObject<dyn NSCopying>>, cnt: NSUInteger ) -> Retained<Self>
NSObject
only.source§impl<KeyType: Message, ObjectType: Message> NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: Message, ObjectType: Message> NSMutableDictionary<KeyType, ObjectType>
Methods declared on superclass NSObject
source§impl<KeyType: Message, ObjectType: Message> NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: Message, ObjectType: Message> NSMutableDictionary<KeyType, ObjectType>
NSExtendedMutableDictionary
pub unsafe fn addEntriesFromDictionary( &mut self, other_dictionary: &NSDictionary<KeyType, ObjectType> )
pub fn removeAllObjects(&mut self)
pub unsafe fn removeObjectsForKeys(&mut self, key_array: &NSArray<KeyType>)
NSArray
only.pub unsafe fn setDictionary( &mut self, other_dictionary: &NSDictionary<KeyType, ObjectType> )
pub unsafe fn setObject_forKeyedSubscript( &mut self, obj: Option<&ObjectType>, key: &ProtocolObject<dyn NSCopying> )
NSObject
only.source§impl<KeyType: Message, ObjectType: Message> NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: Message, ObjectType: Message> NSMutableDictionary<KeyType, ObjectType>
NSMutableDictionaryCreation
pub unsafe fn dictionaryWithCapacity(num_items: NSUInteger) -> Retained<Self>
pub unsafe fn dictionaryWithContentsOfFile( path: &NSString ) -> Option<Retained<NSMutableDictionary<KeyType, ObjectType>>>
NSString
only.pub unsafe fn dictionaryWithContentsOfURL( url: &NSURL ) -> Option<Retained<NSMutableDictionary<KeyType, ObjectType>>>
NSURL
only.pub unsafe fn initWithContentsOfFile( this: Allocated<Self>, path: &NSString ) -> Option<Retained<NSMutableDictionary<KeyType, ObjectType>>>
NSString
only.pub unsafe fn initWithContentsOfURL( this: Allocated<Self>, url: &NSURL ) -> Option<Retained<NSMutableDictionary<KeyType, ObjectType>>>
NSURL
only.source§impl<KeyType: Message, ObjectType: Message> NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: Message, ObjectType: Message> NSMutableDictionary<KeyType, ObjectType>
NSSharedKeySetDictionary
source§impl<KeyType: Message, ObjectType: Message> NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: Message, ObjectType: Message> NSMutableDictionary<KeyType, ObjectType>
NSKeyValueCoding
pub unsafe fn setValue_forKey( &mut self, value: Option<&ObjectType>, key: &NSString )
NSKeyValueCoding
and NSString
only.Methods from Deref<Target = NSDictionary<KeyType, ObjectType>>§
pub fn get(&self, key: &K) -> Option<&V>
pub fn get_retained(&self, key: &K) -> Option<Retained<V>>where
V: IsIdCloneable,
sourcepub fn get_mut(&mut self, key: &K) -> Option<&mut V>where
V: IsMutable,
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")));
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn keys_vec(&self) -> Vec<&K>
pub fn values_vec(&self) -> Vec<&V>
sourcepub fn values_vec_mut(&mut self) -> Vec<&mut V>where
V: IsMutable,
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);
}
pub fn to_vecs(&self) -> (Vec<&K>, Vec<&V>)
sourcepub fn to_array(&self) -> Retained<NSArray<V>>where
V: IsIdCloneable,
Available on crate feature NSArray
only.
pub fn to_array(&self) -> Retained<NSArray<V>>where
V: IsIdCloneable,
NSArray
only.pub fn keys(&self) -> Keys<'_, K, V> ⓘ
NSEnumerator
only.pub fn keys_retained(&self) -> KeysRetained<'_, K, V> ⓘwhere
K: IsIdCloneable,
NSEnumerator
only.pub fn values(&self) -> Values<'_, K, V> ⓘ
NSEnumerator
only.pub fn values_mut(&mut self) -> ValuesMut<'_, K, V> ⓘwhere
V: IsMutable,
NSEnumerator
only.pub fn values_retained(&self) -> ValuesRetained<'_, K, V> ⓘwhere
V: IsIdCloneable,
NSEnumerator
only.pub fn count(&self) -> NSUInteger
pub unsafe fn objectForKey( &self, a_key: &KeyType ) -> Option<Retained<ObjectType>>
pub unsafe fn keyEnumerator(&self) -> Retained<NSEnumerator<KeyType>>
NSEnumerator
only.pub unsafe fn allKeys(&self) -> Retained<NSArray<KeyType>>
NSArray
only.pub unsafe fn allKeysForObject( &self, an_object: &ObjectType ) -> Retained<NSArray<KeyType>>
NSArray
only.pub unsafe fn allValues(&self) -> Retained<NSArray<ObjectType>>
NSArray
only.pub unsafe fn description(&self) -> Retained<NSString>
NSString
only.pub unsafe fn descriptionInStringsFileFormat(&self) -> Retained<NSString>
NSString
only.pub unsafe fn descriptionWithLocale( &self, locale: Option<&AnyObject> ) -> Retained<NSString>
NSString
only.pub unsafe fn descriptionWithLocale_indent( &self, locale: Option<&AnyObject>, level: NSUInteger ) -> Retained<NSString>
NSString
only.pub unsafe fn isEqualToDictionary( &self, other_dictionary: &NSDictionary<KeyType, ObjectType> ) -> bool
pub unsafe fn objectEnumerator(&self) -> Retained<NSEnumerator<ObjectType>>
NSEnumerator
only.pub unsafe fn objectsForKeys_notFoundMarker( &self, keys: &NSArray<KeyType>, marker: &ObjectType ) -> Retained<NSArray<ObjectType>>
NSArray
only.pub unsafe fn writeToURL_error( &self, url: &NSURL ) -> Result<(), Retained<NSError>>
NSError
and NSURL
only.pub unsafe fn keysSortedByValueUsingSelector( &self, comparator: Sel ) -> Retained<NSArray<KeyType>>
NSArray
only.pub unsafe fn getObjects_andKeys_count( &self, objects: *mut NonNull<ObjectType>, keys: *mut NonNull<KeyType>, count: NSUInteger )
pub unsafe fn objectForKeyedSubscript( &self, key: &KeyType ) -> Option<Retained<ObjectType>>
pub unsafe fn enumerateKeysAndObjectsUsingBlock( &self, block: &Block<dyn Fn(NonNull<KeyType>, NonNull<ObjectType>, NonNull<Bool>) + '_> )
block2
only.pub unsafe fn enumerateKeysAndObjectsWithOptions_usingBlock( &self, opts: NSEnumerationOptions, block: &Block<dyn Fn(NonNull<KeyType>, NonNull<ObjectType>, NonNull<Bool>) + '_> )
NSObjCRuntime
and block2
only.pub unsafe fn keysSortedByValueUsingComparator( &self, cmptr: NSComparator ) -> Retained<NSArray<KeyType>>
NSArray
and NSObjCRuntime
and block2
only.pub unsafe fn keysSortedByValueWithOptions_usingComparator( &self, opts: NSSortOptions, cmptr: NSComparator ) -> Retained<NSArray<KeyType>>
NSArray
and NSObjCRuntime
and block2
only.pub unsafe fn keysOfEntriesPassingTest( &self, predicate: &Block<dyn Fn(NonNull<KeyType>, NonNull<ObjectType>, NonNull<Bool>) -> Bool + '_> ) -> Retained<NSSet<KeyType>>
NSSet
and block2
only.pub unsafe fn keysOfEntriesWithOptions_passingTest( &self, opts: NSEnumerationOptions, predicate: &Block<dyn Fn(NonNull<KeyType>, NonNull<ObjectType>, NonNull<Bool>) -> Bool + '_> ) -> Retained<NSSet<KeyType>>
NSObjCRuntime
and NSSet
and block2
only.pub unsafe fn getObjects_andKeys( &self, objects: *mut NonNull<ObjectType>, keys: *mut NonNull<KeyType> )
pub unsafe fn writeToFile_atomically( &self, path: &NSString, use_auxiliary_file: bool ) -> bool
NSString
only.pub unsafe fn writeToURL_atomically( &self, url: &NSURL, atomically: bool ) -> bool
NSURL
only.pub unsafe fn fileSize(&self) -> c_ulonglong
NSFileManager
only.pub unsafe fn fileModificationDate(&self) -> Option<Retained<NSDate>>
NSFileManager
and NSDate
only.pub unsafe fn fileType(&self) -> Option<Retained<NSString>>
NSFileManager
and NSString
only.pub unsafe fn filePosixPermissions(&self) -> NSUInteger
NSFileManager
only.pub unsafe fn fileOwnerAccountName(&self) -> Option<Retained<NSString>>
NSFileManager
and NSString
only.pub unsafe fn fileGroupOwnerAccountName(&self) -> Option<Retained<NSString>>
NSFileManager
and NSString
only.pub unsafe fn fileSystemNumber(&self) -> NSInteger
NSFileManager
only.pub unsafe fn fileSystemFileNumber(&self) -> NSUInteger
NSFileManager
only.pub unsafe fn fileExtensionHidden(&self) -> bool
NSFileManager
only.pub unsafe fn fileHFSCreatorCode(&self) -> OSType
NSFileManager
only.pub unsafe fn fileHFSTypeCode(&self) -> OSType
NSFileManager
only.pub unsafe fn fileIsImmutable(&self) -> bool
NSFileManager
only.pub unsafe fn fileIsAppendOnly(&self) -> bool
NSFileManager
only.pub unsafe fn fileCreationDate(&self) -> Option<Retained<NSDate>>
NSFileManager
and NSDate
only.pub unsafe fn fileOwnerAccountID(&self) -> Option<Retained<NSNumber>>
NSFileManager
and NSValue
only.pub unsafe fn fileGroupOwnerAccountID(&self) -> Option<Retained<NSNumber>>
NSFileManager
and NSValue
only.pub unsafe fn valueForKey(&self, key: &NSString) -> Option<Retained<ObjectType>>
NSKeyValueCoding
and NSString
only.Methods from Deref<Target = NSObject>§
sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
sourcepub fn class(&self) -> &'static AnyClass
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());
sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load
instead.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
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.
sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load_mut
instead.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
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 NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsMut<AnyObject> for NSMutableDictionary<KeyType, ObjectType>
source§impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsMut<NSDictionary<KeyType, ObjectType>> for NSMutableDictionary<KeyType, ObjectType>
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>
fn as_mut(&mut self) -> &mut NSDictionary<KeyType, ObjectType>
source§impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsMut<NSMutableDictionary<KeyType, ObjectType>> for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsMut<NSMutableDictionary<KeyType, ObjectType>> for NSMutableDictionary<KeyType, ObjectType>
source§impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsMut<NSObject> for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsMut<NSObject> for NSMutableDictionary<KeyType, ObjectType>
source§impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsRef<AnyObject> for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsRef<AnyObject> for NSMutableDictionary<KeyType, ObjectType>
source§impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsRef<NSDictionary<KeyType, ObjectType>> for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsRef<NSDictionary<KeyType, ObjectType>> for NSMutableDictionary<KeyType, ObjectType>
source§fn as_ref(&self) -> &NSDictionary<KeyType, ObjectType>
fn as_ref(&self) -> &NSDictionary<KeyType, ObjectType>
source§impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsRef<NSMutableDictionary<KeyType, ObjectType>> for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsRef<NSMutableDictionary<KeyType, ObjectType>> for NSMutableDictionary<KeyType, ObjectType>
source§impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsRef<NSObject> for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsRef<NSObject> for NSMutableDictionary<KeyType, ObjectType>
source§impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> Borrow<AnyObject> for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> Borrow<AnyObject> for NSMutableDictionary<KeyType, ObjectType>
source§impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> Borrow<NSDictionary<KeyType, ObjectType>> for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> Borrow<NSDictionary<KeyType, ObjectType>> for NSMutableDictionary<KeyType, ObjectType>
source§fn borrow(&self) -> &NSDictionary<KeyType, ObjectType>
fn borrow(&self) -> &NSDictionary<KeyType, ObjectType>
source§impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> Borrow<NSObject> for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> Borrow<NSObject> for NSMutableDictionary<KeyType, ObjectType>
source§impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> BorrowMut<AnyObject> for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> BorrowMut<AnyObject> for NSMutableDictionary<KeyType, ObjectType>
source§fn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
source§impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> BorrowMut<NSDictionary<KeyType, ObjectType>> for NSMutableDictionary<KeyType, ObjectType>
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>
fn borrow_mut(&mut self) -> &mut NSDictionary<KeyType, ObjectType>
source§impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> BorrowMut<NSObject> for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> BorrowMut<NSObject> for NSMutableDictionary<KeyType, ObjectType>
source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
source§impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> ClassType for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> ClassType for NSMutableDictionary<KeyType, ObjectType>
§type Super = NSDictionary<KeyType, ObjectType>
type Super = NSDictionary<KeyType, ObjectType>
§type Mutability = MutableWithImmutableSuperclass<NSDictionary<KeyType, ObjectType>>
type Mutability = MutableWithImmutableSuperclass<NSDictionary<KeyType, ObjectType>>
source§const NAME: &'static str = "NSMutableDictionary"
const NAME: &'static str = "NSMutableDictionary"
source§fn class() -> &'static AnyClass
fn class() -> &'static AnyClass
source§fn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
source§impl<KeyType: Message, ObjectType: Message> DefaultRetained for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: Message, ObjectType: Message> DefaultRetained for NSMutableDictionary<KeyType, ObjectType>
source§impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> Deref for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> Deref for NSMutableDictionary<KeyType, ObjectType>
source§impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> DerefMut for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> DerefMut for NSMutableDictionary<KeyType, ObjectType>
source§impl<KeyType: Hash + ?Sized, ObjectType: Hash + ?Sized> Hash for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: Hash + ?Sized, ObjectType: Hash + ?Sized> Hash for NSMutableDictionary<KeyType, ObjectType>
source§impl<'a, K: Message + Eq + Hash, V: Message + IsMutable> IndexMut<&'a K> for NSMutableDictionary<K, V>
impl<'a, K: Message + Eq + Hash, V: Message + IsMutable> IndexMut<&'a K> for NSMutableDictionary<K, V>
source§impl<KeyType: PartialEq + ?Sized, ObjectType: PartialEq + ?Sized> PartialEq for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: PartialEq + ?Sized, ObjectType: PartialEq + ?Sized> PartialEq for NSMutableDictionary<KeyType, ObjectType>
source§fn eq(&self, other: &NSMutableDictionary<KeyType, ObjectType>) -> bool
fn eq(&self, other: &NSMutableDictionary<KeyType, ObjectType>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> RefEncode for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> RefEncode for NSMutableDictionary<KeyType, ObjectType>
source§const ENCODING_REF: Encoding = <NSDictionary<KeyType, ObjectType> as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSDictionary<KeyType, ObjectType> as ::objc2::RefEncode>::ENCODING_REF
impl<KeyType: Eq + ?Sized, ObjectType: Eq + ?Sized> Eq for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> Message for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: ?Sized + NSCoding, ObjectType: ?Sized + NSCoding> NSCoding for NSMutableDictionary<KeyType, ObjectType>
NSObject
only.impl<KeyType: ?Sized + IsIdCloneable, ObjectType: ?Sized + IsIdCloneable> NSCopying for NSMutableDictionary<KeyType, ObjectType>
NSObject
only.impl<KeyType: ?Sized, ObjectType: ?Sized> NSFastEnumeration for NSMutableDictionary<KeyType, ObjectType>
NSEnumerator
only.impl<KeyType: ?Sized + IsIdCloneable, ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSMutableDictionary<KeyType, ObjectType>
NSObject
only.impl<KeyType: ?Sized, ObjectType: ?Sized> NSObjectProtocol for NSMutableDictionary<KeyType, ObjectType>
impl<KeyType: ?Sized + NSSecureCoding, ObjectType: ?Sized + NSSecureCoding> NSSecureCoding for NSMutableDictionary<KeyType, ObjectType>
NSObject
only.