[][src]Trait objc_foundation::INSArray

pub trait INSArray: INSObject {
    type Item: INSObject;
    type Own: Ownership;
    fn count(&self) -> usize { ... }
fn object_at(&self, index: usize) -> &Self::Item { ... }
fn first_object(&self) -> Option<&Self::Item> { ... }
fn last_object(&self) -> Option<&Self::Item> { ... }
fn object_enumerator(&self) -> NSEnumerator<Self::Item> { ... }
fn from_vec(vec: Vec<Id<Self::Item, Self::Own>>) -> Id<Self> { ... }
fn objects_in_range(&self, range: Range<usize>) -> Vec<&Self::Item> { ... }
fn to_vec(&self) -> Vec<&Self::Item> { ... }
fn into_vec(array: Id<Self>) -> Vec<Id<Self::Item, Self::Own>> { ... }
fn mut_object_at(&mut self, index: usize) -> &mut Self::Item
    where
        Self: INSArray<Own = Owned>
, { ... }
fn shared_object_at(&self, index: usize) -> ShareId<Self::Item>
    where
        Self: INSArray<Own = Shared>
, { ... }
fn from_slice(slice: &[ShareId<Self::Item>]) -> Id<Self>
    where
        Self: INSArray<Own = Shared>
, { ... }
fn to_shared_vec(&self) -> Vec<ShareId<Self::Item>>
    where
        Self: INSArray<Own = Shared>
, { ... } }

Associated Types

type Item: INSObject

type Own: Ownership

Loading content...

Provided methods

fn count(&self) -> usize

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

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

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

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

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

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

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

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

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

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

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

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

Loading content...

Implementors

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> INSArray for NSMutableArray<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]

Loading content...