[][src]Struct objc_foundation::NSDictionary

pub struct NSDictionary<K, V> { /* fields omitted */ }

Trait Implementations

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]

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

type Item = K

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

impl<K, V> INSObject for NSDictionary<K, V> where
    K: INSObject,
    V: INSObject
[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<'a, K, V> Index<&'a K> for NSDictionary<K, V> where
    K: INSObject,
    V: INSObject
[src]

type Output = V

The returned type after indexing.

impl<K, V> Message for NSDictionary<K, V>[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<K, V> Send for NSDictionary<K, V> where
    K: Sync,
    V: Send

impl<K, V> Sync for NSDictionary<K, V> where
    K: Sync,
    V: 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]