[][src]Trait objc_foundation::INSDictionary

pub trait INSDictionary: INSObject {
    type Key: INSObject;
    type Value: INSObject;
    type Own: Ownership;
    fn count(&self) -> usize { ... }
fn object_for(&self, key: &Self::Key) -> Option<&Self::Value> { ... }
fn keys(&self) -> Vec<&Self::Key> { ... }
fn values(&self) -> Vec<&Self::Value> { ... }
fn keys_and_objects(&self) -> (Vec<&Self::Key>, Vec<&Self::Value>) { ... }
fn key_enumerator(&self) -> NSEnumerator<Self::Key> { ... }
fn object_enumerator(&self) -> NSEnumerator<Self::Value> { ... }
fn keys_array(&self) -> Id<NSSharedArray<Self::Key>> { ... }
fn from_keys_and_objects<T>(
        keys: &[&T],
        vals: Vec<Id<Self::Value, Self::Own>>
    ) -> Id<Self>
    where
        T: INSCopying<Output = Self::Key>
, { ... }
fn into_values_array(dict: Id<Self>) -> Id<NSArray<Self::Value, Self::Own>> { ... } }

Associated Types

type Key: INSObject

type Value: INSObject

type Own: Ownership

Loading content...

Provided methods

fn count(&self) -> usize

fn object_for(&self, key: &Self::Key) -> Option<&Self::Value>

fn keys(&self) -> Vec<&Self::Key>

fn values(&self) -> Vec<&Self::Value>

fn keys_and_objects(&self) -> (Vec<&Self::Key>, Vec<&Self::Value>)

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

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

fn keys_array(&self) -> Id<NSSharedArray<Self::Key>>

fn from_keys_and_objects<T>(
    keys: &[&T],
    vals: Vec<Id<Self::Value, Self::Own>>
) -> Id<Self> where
    T: INSCopying<Output = Self::Key>, 

fn into_values_array(dict: Id<Self>) -> Id<NSArray<Self::Value, Self::Own>>

Loading content...

Implementors

impl<K, V> INSDictionary for NSDictionary<K, V> where
    K: INSObject,
    V: INSObject
[src]

type Key = K

type Value = V

type Own = Owned

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

fn object_for(&self, key: &Self::Key) -> Option<&Self::Value>[src]

fn keys(&self) -> Vec<&Self::Key>[src]

fn values(&self) -> Vec<&Self::Value>[src]

fn keys_and_objects(&self) -> (Vec<&Self::Key>, Vec<&Self::Value>)[src]

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

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

fn keys_array(&self) -> Id<NSSharedArray<Self::Key>>[src]

fn from_keys_and_objects<T>(
    keys: &[&T],
    vals: Vec<Id<Self::Value, Self::Own>>
) -> Id<Self> where
    T: INSCopying<Output = Self::Key>, 
[src]

fn into_values_array(dict: Id<Self>) -> Id<NSArray<Self::Value, Self::Own>>[src]

Loading content...