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
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.