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§

source

unsafe fn init(self) -> id

source

unsafe fn count(self) -> NSUInteger

source

unsafe fn arrayByAddingObjectFromArray(self, object: id) -> id

source

unsafe fn arrayByAddingObjectsFromArray(self, objects: id) -> id

source

unsafe fn objectAtIndex(self, index: NSUInteger) -> id

Provided Methods§

source

unsafe fn array(_: Self) -> id

source

unsafe fn arrayWithObjects(_: Self, objects: &[id]) -> id

source

unsafe fn arrayWithObject(_: Self, object: id) -> id

Implementors§