[][src]Struct objc_foundation::NSArray

pub struct NSArray<T, O = Owned> { /* fields omitted */ }

Trait Implementations

impl<T, O> INSArray for NSArray<T, O> where
    T: INSObject,
    O: Ownership
[src]

type Item = T

type Own = O

fn count(&self) -> usize[src]

fn object_at(&self, index: usize) -> &Self::Item[src]

fn first_object(&self) -> Option<&Self::Item>[src]

fn last_object(&self) -> Option<&Self::Item>[src]

Important traits for NSEnumerator<'a, T>
fn object_enumerator(&self) -> NSEnumerator<Self::Item>[src]

fn from_vec(vec: Vec<Id<Self::Item, Self::Own>>) -> Id<Self>[src]

fn objects_in_range(&self, range: Range<usize>) -> Vec<&Self::Item>[src]

fn to_vec(&self) -> Vec<&Self::Item>[src]

fn into_vec(array: Id<Self>) -> Vec<Id<Self::Item, Self::Own>>[src]

fn mut_object_at(&mut self, index: usize) -> &mut Self::Item where
    Self: INSArray<Own = Owned>, 
[src]

fn shared_object_at(&self, index: usize) -> ShareId<Self::Item> where
    Self: INSArray<Own = Shared>, 
[src]

fn from_slice(slice: &[ShareId<Self::Item>]) -> Id<Self> where
    Self: INSArray<Own = Shared>, 
[src]

fn to_shared_vec(&self) -> Vec<ShareId<Self::Item>> where
    Self: INSArray<Own = Shared>, 
[src]

impl<T, O> INSFastEnumeration for NSArray<T, O> where
    T: INSObject,
    O: Ownership
[src]

type Item = T

Important traits for NSFastEnumerator<'a, C>
fn enumerator(&self) -> NSFastEnumerator<Self>[src]

impl<T, O> INSObject for NSArray<T, O> where
    T: INSObject,
    O: Ownership
[src]

fn hash_code(&self) -> usize[src]

fn is_equal<T>(&self, other: &T) -> bool where
    T: INSObject
[src]

fn description(&self) -> ShareId<NSString>[src]

fn is_kind_of(&self, cls: &Class) -> bool[src]

fn new() -> Id<Self>[src]

impl<T> INSCopying for NSArray<T, Shared> where
    T: INSObject
[src]

type Output = NSSharedArray<T>

fn copy(&self) -> ShareId<Self::Output>[src]

impl<T> INSMutableCopying for NSArray<T, Shared> where
    T: INSObject
[src]

impl<T, O> Index<usize> for NSArray<T, O> where
    T: INSObject,
    O: Ownership
[src]

type Output = T

The returned type after indexing.

impl<T, O> Message for NSArray<T, O>[src]

unsafe fn send_message<A, R>(
    &self,
    sel: Sel,
    args: A
) -> Result<R, MessageError> where
    A: MessageArguments,
    R: Any
[src]

Sends a message to self with the given selector and arguments. Read more

fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError> where
    A: EncodeArguments,
    R: Encode
[src]

Verifies that the argument and return types match the encoding of the method for the given selector. Read more

Auto Trait Implementations

impl<T, O = Owned> !Send for NSArray<T, O>

impl<T, O> Sync for NSArray<T, O> where
    T: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]