Trait cocoa_foundation::foundation::NSDictionary
source · pub trait NSDictionary: Sized {
Show 55 methods
// Required methods
unsafe fn init(self) -> id;
unsafe fn initWithContentsOfFile_(self, path: id) -> id;
unsafe fn initWithContentsOfURL_(self, aURL: id) -> id;
unsafe fn initWithDictionary_(self, otherDictionary: id) -> id;
unsafe fn initWithDictionary_copyItems_(
self,
otherDictionary: id,
flag: BOOL,
) -> id;
unsafe fn initWithObjects_forKeys_(self, objects: id, keys: id) -> id;
unsafe fn initWithObjects_forKeys_count_(
self,
objects: id,
keys: id,
count: NSUInteger,
) -> id;
unsafe fn initWithObjectsAndKeys_(self, firstObject: id) -> id;
unsafe fn count(self) -> NSUInteger;
unsafe fn isEqualToDictionary_(self, otherDictionary: id) -> BOOL;
unsafe fn allKeys(self) -> id;
unsafe fn allKeysForObject_(self, anObject: id) -> id;
unsafe fn allValues(self) -> id;
unsafe fn objectForKey_(self, aKey: id) -> id;
unsafe fn objectForKeyedSubscript_(self, key: id) -> id;
unsafe fn objectsForKeys_notFoundMarker_(self, keys: id, anObject: id) -> id;
unsafe fn valueForKey_(self, key: id) -> id;
unsafe fn keyEnumerator(self) -> id;
unsafe fn objectEnumerator(self) -> id;
unsafe fn enumerateKeysAndObjectsUsingBlock_(
self,
block: *mut Block<(id, id, *mut BOOL), ()>,
);
unsafe fn enumerateKeysAndObjectsWithOptions_usingBlock_(
self,
opts: NSEnumerationOptions,
block: *mut Block<(id, id, *mut BOOL), ()>,
);
unsafe fn keysSortedByValueUsingSelector_(self, comparator: SEL) -> id;
unsafe fn keysSortedByValueUsingComparator_(self, cmptr: NSComparator) -> id;
unsafe fn keysSortedByValueWithOptions_usingComparator_(
self,
opts: NSEnumerationOptions,
cmptr: NSComparator,
) -> id;
unsafe fn keysOfEntriesPassingTest_(
self,
predicate: *mut Block<(id, id, *mut BOOL), BOOL>,
) -> id;
unsafe fn keysOfEntriesWithOptions_PassingTest_(
self,
opts: NSEnumerationOptions,
predicate: *mut Block<(id, id, *mut BOOL), BOOL>,
) -> id;
unsafe fn writeToFile_atomically_(self, path: id, flag: BOOL) -> BOOL;
unsafe fn writeToURL_atomically_(self, aURL: id, flag: BOOL) -> BOOL;
unsafe fn fileCreationDate(self) -> id;
unsafe fn fileExtensionHidden(self) -> BOOL;
unsafe fn fileGroupOwnerAccountID(self) -> id;
unsafe fn fileGroupOwnerAccountName(self) -> id;
unsafe fn fileIsAppendOnly(self) -> BOOL;
unsafe fn fileIsImmutable(self) -> BOOL;
unsafe fn fileModificationDate(self) -> id;
unsafe fn fileOwnerAccountID(self) -> id;
unsafe fn fileOwnerAccountName(self) -> id;
unsafe fn filePosixPermissions(self) -> NSUInteger;
unsafe fn fileSize(self) -> c_ulonglong;
unsafe fn fileSystemFileNumber(self) -> NSUInteger;
unsafe fn fileSystemNumber(self) -> NSInteger;
unsafe fn fileType(self) -> id;
unsafe fn description(self) -> id;
unsafe fn descriptionInStringsFileFormat(self) -> id;
unsafe fn descriptionWithLocale_(self, locale: id) -> id;
unsafe fn descriptionWithLocale_indent_(
self,
locale: id,
indent: NSUInteger,
) -> id;
// Provided methods
unsafe fn dictionary(_: Self) -> id { ... }
unsafe fn dictionaryWithContentsOfFile_(_: Self, path: id) -> id { ... }
unsafe fn dictionaryWithContentsOfURL_(_: Self, aURL: id) -> id { ... }
unsafe fn dictionaryWithDictionary_(_: Self, otherDictionary: id) -> id { ... }
unsafe fn dictionaryWithObject_forKey_(
_: Self,
anObject: id,
aKey: id,
) -> id { ... }
unsafe fn dictionaryWithObjects_forKeys_(
_: Self,
objects: id,
keys: id,
) -> id { ... }
unsafe fn dictionaryWithObjects_forKeys_count_(
_: Self,
objects: *const id,
keys: *const id,
count: NSUInteger,
) -> id { ... }
unsafe fn dictionaryWithObjectsAndKeys_(_: Self, firstObject: id) -> id { ... }
unsafe fn sharedKeySetForKeys_(_: Self, keys: id) -> id { ... }
}
Required Methods§
unsafe fn init(self) -> id
unsafe fn initWithContentsOfFile_(self, path: id) -> id
unsafe fn initWithContentsOfURL_(self, aURL: id) -> id
unsafe fn initWithDictionary_(self, otherDictionary: id) -> id
unsafe fn initWithDictionary_copyItems_( self, otherDictionary: id, flag: BOOL, ) -> id
unsafe fn initWithObjects_forKeys_(self, objects: id, keys: id) -> id
unsafe fn initWithObjects_forKeys_count_( self, objects: id, keys: id, count: NSUInteger, ) -> id
unsafe fn initWithObjectsAndKeys_(self, firstObject: id) -> id
unsafe fn count(self) -> NSUInteger
unsafe fn isEqualToDictionary_(self, otherDictionary: id) -> BOOL
unsafe fn allKeys(self) -> id
unsafe fn allKeysForObject_(self, anObject: id) -> id
unsafe fn allValues(self) -> id
unsafe fn objectForKey_(self, aKey: id) -> id
unsafe fn objectForKeyedSubscript_(self, key: id) -> id
unsafe fn objectsForKeys_notFoundMarker_(self, keys: id, anObject: id) -> id
unsafe fn valueForKey_(self, key: id) -> id
unsafe fn keyEnumerator(self) -> id
unsafe fn objectEnumerator(self) -> id
unsafe fn enumerateKeysAndObjectsUsingBlock_( self, block: *mut Block<(id, id, *mut BOOL), ()>, )
unsafe fn enumerateKeysAndObjectsWithOptions_usingBlock_( self, opts: NSEnumerationOptions, block: *mut Block<(id, id, *mut BOOL), ()>, )
unsafe fn keysSortedByValueUsingSelector_(self, comparator: SEL) -> id
unsafe fn keysSortedByValueUsingComparator_(self, cmptr: NSComparator) -> id
unsafe fn keysSortedByValueWithOptions_usingComparator_( self, opts: NSEnumerationOptions, cmptr: NSComparator, ) -> id
unsafe fn keysOfEntriesPassingTest_( self, predicate: *mut Block<(id, id, *mut BOOL), BOOL>, ) -> id
unsafe fn keysOfEntriesWithOptions_PassingTest_( self, opts: NSEnumerationOptions, predicate: *mut Block<(id, id, *mut BOOL), BOOL>, ) -> id
unsafe fn writeToFile_atomically_(self, path: id, flag: BOOL) -> BOOL
unsafe fn writeToURL_atomically_(self, aURL: id, flag: BOOL) -> BOOL
unsafe fn fileCreationDate(self) -> id
unsafe fn fileExtensionHidden(self) -> BOOL
unsafe fn fileGroupOwnerAccountID(self) -> id
unsafe fn fileGroupOwnerAccountName(self) -> id
unsafe fn fileIsAppendOnly(self) -> BOOL
unsafe fn fileIsImmutable(self) -> BOOL
unsafe fn fileModificationDate(self) -> id
unsafe fn fileOwnerAccountID(self) -> id
unsafe fn fileOwnerAccountName(self) -> id
unsafe fn filePosixPermissions(self) -> NSUInteger
unsafe fn fileSize(self) -> c_ulonglong
unsafe fn fileSystemFileNumber(self) -> NSUInteger
unsafe fn fileSystemNumber(self) -> NSInteger
unsafe fn fileType(self) -> id
unsafe fn description(self) -> id
unsafe fn descriptionInStringsFileFormat(self) -> id
unsafe fn descriptionWithLocale_(self, locale: id) -> id
unsafe fn descriptionWithLocale_indent_( self, locale: id, indent: NSUInteger, ) -> id
Provided Methods§
unsafe fn dictionary(_: Self) -> id
unsafe fn dictionaryWithContentsOfFile_(_: Self, path: id) -> id
unsafe fn dictionaryWithContentsOfURL_(_: Self, aURL: id) -> id
unsafe fn dictionaryWithDictionary_(_: Self, otherDictionary: id) -> id
unsafe fn dictionaryWithObject_forKey_(_: Self, anObject: id, aKey: id) -> id
unsafe fn dictionaryWithObjects_forKeys_(_: Self, objects: id, keys: id) -> id
unsafe fn dictionaryWithObjects_forKeys_count_( _: Self, objects: *const id, keys: *const id, count: NSUInteger, ) -> id
unsafe fn dictionaryWithObjectsAndKeys_(_: Self, firstObject: id) -> id
Object Safety§
This trait is not object safe.