Trait cocoa_foundation::foundation::NSArray
source · pub trait NSArray: Sized {
// Required methods
unsafe fn init(self) -> id;
unsafe fn count(self) -> NSUInteger;
unsafe fn arrayByAddingObjectFromArray(self, object: id) -> id;
unsafe fn arrayByAddingObjectsFromArray(self, objects: id) -> id;
unsafe fn objectAtIndex(self, index: NSUInteger) -> id;
// Provided methods
unsafe fn array(_: Self) -> id { ... }
unsafe fn arrayWithObjects(_: Self, objects: &[id]) -> id { ... }
unsafe fn arrayWithObject(_: Self, object: id) -> id { ... }
}
Required Methods§
unsafe fn init(self) -> id
unsafe fn count(self) -> NSUInteger
unsafe fn arrayByAddingObjectFromArray(self, object: id) -> id
unsafe fn arrayByAddingObjectsFromArray(self, objects: id) -> id
unsafe fn objectAtIndex(self, index: NSUInteger) -> id
Provided Methods§
unsafe fn array(_: Self) -> id
unsafe fn arrayWithObjects(_: Self, objects: &[id]) -> id
unsafe fn arrayWithObject(_: Self, object: id) -> id
Object Safety§
This trait is not object safe.