Trait 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§

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

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.

Implementors§