[go: up one dir, main page]

Trait NSDictionary

Source
pub trait NSDictionary: Sized {
Show 55 methods // Required methods unsafe fn init(self) -> *mut Object; unsafe fn initWithContentsOfFile_(self, path: *mut Object) -> *mut Object; unsafe fn initWithContentsOfURL_(self, aURL: *mut Object) -> *mut Object; unsafe fn initWithDictionary_( self, otherDictionary: *mut Object, ) -> *mut Object; unsafe fn initWithDictionary_copyItems_( self, otherDictionary: *mut Object, flag: i8, ) -> *mut Object; unsafe fn initWithObjects_forKeys_( self, objects: *mut Object, keys: *mut Object, ) -> *mut Object; unsafe fn initWithObjects_forKeys_count_( self, objects: *mut Object, keys: *mut Object, count: u64, ) -> *mut Object; unsafe fn initWithObjectsAndKeys_( self, firstObject: *mut Object, ) -> *mut Object; unsafe fn count(self) -> u64; unsafe fn isEqualToDictionary_(self, otherDictionary: *mut Object) -> i8; unsafe fn allKeys(self) -> *mut Object; unsafe fn allKeysForObject_(self, anObject: *mut Object) -> *mut Object; unsafe fn allValues(self) -> *mut Object; unsafe fn objectForKey_(self, aKey: *mut Object) -> *mut Object; unsafe fn objectForKeyedSubscript_(self, key: *mut Object) -> *mut Object; unsafe fn objectsForKeys_notFoundMarker_( self, keys: *mut Object, anObject: *mut Object, ) -> *mut Object; unsafe fn valueForKey_(self, key: *mut Object) -> *mut Object; unsafe fn keyEnumerator(self) -> *mut Object; unsafe fn objectEnumerator(self) -> *mut Object; unsafe fn enumerateKeysAndObjectsUsingBlock_( self, block: *mut Block<(*mut Object, *mut Object, *mut i8), ()>, ); unsafe fn enumerateKeysAndObjectsWithOptions_usingBlock_( self, opts: NSEnumerationOptions, block: *mut Block<(*mut Object, *mut Object, *mut i8), ()>, ); unsafe fn keysSortedByValueUsingSelector_( self, comparator: Sel, ) -> *mut Object; unsafe fn keysSortedByValueUsingComparator_( self, cmptr: *mut Block<(*mut Object, *mut Object), NSComparisonResult>, ) -> *mut Object; unsafe fn keysSortedByValueWithOptions_usingComparator_( self, opts: NSEnumerationOptions, cmptr: *mut Block<(*mut Object, *mut Object), NSComparisonResult>, ) -> *mut Object; unsafe fn keysOfEntriesPassingTest_( self, predicate: *mut Block<(*mut Object, *mut Object, *mut i8), i8>, ) -> *mut Object; unsafe fn keysOfEntriesWithOptions_PassingTest_( self, opts: NSEnumerationOptions, predicate: *mut Block<(*mut Object, *mut Object, *mut i8), i8>, ) -> *mut Object; unsafe fn writeToFile_atomically_(self, path: *mut Object, flag: i8) -> i8; unsafe fn writeToURL_atomically_(self, aURL: *mut Object, flag: i8) -> i8; unsafe fn fileCreationDate(self) -> *mut Object; unsafe fn fileExtensionHidden(self) -> i8; unsafe fn fileGroupOwnerAccountID(self) -> *mut Object; unsafe fn fileGroupOwnerAccountName(self) -> *mut Object; unsafe fn fileIsAppendOnly(self) -> i8; unsafe fn fileIsImmutable(self) -> i8; unsafe fn fileModificationDate(self) -> *mut Object; unsafe fn fileOwnerAccountID(self) -> *mut Object; unsafe fn fileOwnerAccountName(self) -> *mut Object; unsafe fn filePosixPermissions(self) -> u64; unsafe fn fileSize(self) -> u64; unsafe fn fileSystemFileNumber(self) -> u64; unsafe fn fileSystemNumber(self) -> i64; unsafe fn fileType(self) -> *mut Object; unsafe fn description(self) -> *mut Object; unsafe fn descriptionInStringsFileFormat(self) -> *mut Object; unsafe fn descriptionWithLocale_(self, locale: *mut Object) -> *mut Object; unsafe fn descriptionWithLocale_indent_( self, locale: *mut Object, indent: u64, ) -> *mut Object; // Provided methods unsafe fn dictionary(_: Self) -> *mut Object { ... } unsafe fn dictionaryWithContentsOfFile_( _: Self, path: *mut Object, ) -> *mut Object { ... } unsafe fn dictionaryWithContentsOfURL_( _: Self, aURL: *mut Object, ) -> *mut Object { ... } unsafe fn dictionaryWithDictionary_( _: Self, otherDictionary: *mut Object, ) -> *mut Object { ... } unsafe fn dictionaryWithObject_forKey_( _: Self, anObject: *mut Object, aKey: *mut Object, ) -> *mut Object { ... } unsafe fn dictionaryWithObjects_forKeys_( _: Self, objects: *mut Object, keys: *mut Object, ) -> *mut Object { ... } unsafe fn dictionaryWithObjects_forKeys_count_( _: Self, objects: *const *mut Object, keys: *const *mut Object, count: u64, ) -> *mut Object { ... } unsafe fn dictionaryWithObjectsAndKeys_( _: Self, firstObject: *mut Object, ) -> *mut Object { ... } unsafe fn sharedKeySetForKeys_(_: Self, keys: *mut Object) -> *mut Object { ... }
}
๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead

Required Methodsยง

Source

unsafe fn init(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn initWithContentsOfFile_(self, path: *mut Object) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn initWithContentsOfURL_(self, aURL: *mut Object) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn initWithDictionary_(self, otherDictionary: *mut Object) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn initWithDictionary_copyItems_( self, otherDictionary: *mut Object, flag: i8, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn initWithObjects_forKeys_( self, objects: *mut Object, keys: *mut Object, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn initWithObjects_forKeys_count_( self, objects: *mut Object, keys: *mut Object, count: u64, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn initWithObjectsAndKeys_(self, firstObject: *mut Object) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn count(self) -> u64

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn isEqualToDictionary_(self, otherDictionary: *mut Object) -> i8

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn allKeys(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn allKeysForObject_(self, anObject: *mut Object) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn allValues(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn objectForKey_(self, aKey: *mut Object) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn objectForKeyedSubscript_(self, key: *mut Object) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn objectsForKeys_notFoundMarker_( self, keys: *mut Object, anObject: *mut Object, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn valueForKey_(self, key: *mut Object) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn keyEnumerator(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn objectEnumerator(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn enumerateKeysAndObjectsUsingBlock_( self, block: *mut Block<(*mut Object, *mut Object, *mut i8), ()>, )

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn enumerateKeysAndObjectsWithOptions_usingBlock_( self, opts: NSEnumerationOptions, block: *mut Block<(*mut Object, *mut Object, *mut i8), ()>, )

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn keysSortedByValueUsingSelector_(self, comparator: Sel) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn keysSortedByValueUsingComparator_( self, cmptr: *mut Block<(*mut Object, *mut Object), NSComparisonResult>, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn keysSortedByValueWithOptions_usingComparator_( self, opts: NSEnumerationOptions, cmptr: *mut Block<(*mut Object, *mut Object), NSComparisonResult>, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn keysOfEntriesPassingTest_( self, predicate: *mut Block<(*mut Object, *mut Object, *mut i8), i8>, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn keysOfEntriesWithOptions_PassingTest_( self, opts: NSEnumerationOptions, predicate: *mut Block<(*mut Object, *mut Object, *mut i8), i8>, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn writeToFile_atomically_(self, path: *mut Object, flag: i8) -> i8

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn writeToURL_atomically_(self, aURL: *mut Object, flag: i8) -> i8

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn fileCreationDate(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn fileExtensionHidden(self) -> i8

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn fileGroupOwnerAccountID(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn fileGroupOwnerAccountName(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn fileIsAppendOnly(self) -> i8

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn fileIsImmutable(self) -> i8

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn fileModificationDate(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn fileOwnerAccountID(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn fileOwnerAccountName(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn filePosixPermissions(self) -> u64

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn fileSize(self) -> u64

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn fileSystemFileNumber(self) -> u64

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn fileSystemNumber(self) -> i64

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn fileType(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn description(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn descriptionInStringsFileFormat(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn descriptionWithLocale_(self, locale: *mut Object) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn descriptionWithLocale_indent_( self, locale: *mut Object, indent: u64, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead

Provided Methodsยง

Source

unsafe fn dictionary(_: Self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn dictionaryWithContentsOfFile_( _: Self, path: *mut Object, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn dictionaryWithContentsOfURL_( _: Self, aURL: *mut Object, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn dictionaryWithDictionary_( _: Self, otherDictionary: *mut Object, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn dictionaryWithObject_forKey_( _: Self, anObject: *mut Object, aKey: *mut Object, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn dictionaryWithObjects_forKeys_( _: Self, objects: *mut Object, keys: *mut Object, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn dictionaryWithObjects_forKeys_count_( _: Self, objects: *const *mut Object, keys: *const *mut Object, count: u64, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn dictionaryWithObjectsAndKeys_( _: Self, firstObject: *mut Object, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn sharedKeySetForKeys_(_: Self, keys: *mut Object) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead

Dyn Compatibilityยง

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Typesยง

Sourceยง

impl NSDictionary for *mut Object

Sourceยง

unsafe fn init(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn initWithContentsOfFile_(self, path: *mut Object) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn initWithContentsOfURL_(self, aURL: *mut Object) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn initWithDictionary_(self, otherDictionary: *mut Object) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn initWithDictionary_copyItems_( self, otherDictionary: *mut Object, flag: i8, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn initWithObjects_forKeys_( self, objects: *mut Object, keys: *mut Object, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn initWithObjects_forKeys_count_( self, objects: *mut Object, keys: *mut Object, count: u64, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn initWithObjectsAndKeys_(self, firstObject: *mut Object) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn count(self) -> u64

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn isEqualToDictionary_(self, otherDictionary: *mut Object) -> i8

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn allKeys(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn allKeysForObject_(self, anObject: *mut Object) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn allValues(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn objectForKey_(self, aKey: *mut Object) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn objectForKeyedSubscript_(self, key: *mut Object) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn objectsForKeys_notFoundMarker_( self, keys: *mut Object, anObject: *mut Object, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn valueForKey_(self, key: *mut Object) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn keyEnumerator(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn objectEnumerator(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn enumerateKeysAndObjectsUsingBlock_( self, block: *mut Block<(*mut Object, *mut Object, *mut i8), ()>, )

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn enumerateKeysAndObjectsWithOptions_usingBlock_( self, opts: NSEnumerationOptions, block: *mut Block<(*mut Object, *mut Object, *mut i8), ()>, )

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn keysSortedByValueUsingSelector_(self, comparator: Sel) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn keysSortedByValueUsingComparator_( self, cmptr: *mut Block<(*mut Object, *mut Object), NSComparisonResult>, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn keysSortedByValueWithOptions_usingComparator_( self, opts: NSEnumerationOptions, cmptr: *mut Block<(*mut Object, *mut Object), NSComparisonResult>, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn keysOfEntriesPassingTest_( self, predicate: *mut Block<(*mut Object, *mut Object, *mut i8), i8>, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn keysOfEntriesWithOptions_PassingTest_( self, opts: NSEnumerationOptions, predicate: *mut Block<(*mut Object, *mut Object, *mut i8), i8>, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn writeToFile_atomically_(self, path: *mut Object, flag: i8) -> i8

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn writeToURL_atomically_(self, aURL: *mut Object, flag: i8) -> i8

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn fileCreationDate(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn fileExtensionHidden(self) -> i8

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn fileGroupOwnerAccountID(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn fileGroupOwnerAccountName(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn fileIsAppendOnly(self) -> i8

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn fileIsImmutable(self) -> i8

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn fileModificationDate(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn fileOwnerAccountID(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn fileOwnerAccountName(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn filePosixPermissions(self) -> u64

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn fileSize(self) -> u64

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn fileSystemFileNumber(self) -> u64

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn fileSystemNumber(self) -> i64

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn fileType(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn description(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn descriptionInStringsFileFormat(self) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn descriptionWithLocale_(self, locale: *mut Object) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Sourceยง

unsafe fn descriptionWithLocale_indent_( self, locale: *mut Object, indent: u64, ) -> *mut Object

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead

Implementorsยง