pub struct NSDictionary<K, V> { /* private fields */ }
Trait Implementations§
Source§impl<K, V> INSDictionary for NSDictionary<K, V>
impl<K, V> INSDictionary for NSDictionary<K, V>
type Key = K
type Value = V
type Own = Owned
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>>
Source§impl<K, V> INSFastEnumeration for NSDictionary<K, V>
impl<K, V> INSFastEnumeration for NSDictionary<K, V>
type Item = K
fn enumerator(&self) -> NSFastEnumerator<'_, Self> ⓘ
Source§impl<K, V> INSObject for NSDictionary<K, V>
impl<K, V> INSObject for NSDictionary<K, V>
Source§impl<'a, K, V> Index<&'a K> for NSDictionary<K, V>
impl<'a, K, V> Index<&'a K> for NSDictionary<K, V>
Source§impl<K, V> Message for NSDictionary<K, V>
impl<K, V> Message for NSDictionary<K, V>
Source§unsafe fn send_message<A, R>(
&self,
sel: Sel,
args: A,
) -> Result<R, MessageError>
unsafe fn send_message<A, R>( &self, sel: Sel, args: A, ) -> Result<R, MessageError>
Sends a message to self with the given selector and arguments. Read more
Source§fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
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> Freeze for NSDictionary<K, V>
impl<K, V> RefUnwindSafe for NSDictionary<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for NSDictionary<K, V>
impl<K, V> Sync for NSDictionary<K, V>
impl<K, V> Unpin for NSDictionary<K, V>
impl<K, V> UnwindSafe for NSDictionary<K, V>where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more