pub struct NSMutableDictionary(pub Id<Object>);
Expand description

A wrapper for NSMutableDictionary.

Tuple Fields

0: Id<Object>

Implementations

Constructs an NSMutableDictionary and retains it.

Why mutable? It’s just easier for working with it, as they’re (mostly) interchangeable when passed around in Objective-C. We guard against mutation on our side using the standard Rust object model. You can, of course, bypass it and msg_send![] yourself, but it’d require an unsafe {} block… so you’ll know you’re in special territory then.

Inserts an object into the backing NSMutablyDictionary.

This intentionally requires NSString be allocated ahead of time.

Consumes and returns the underlying NSMutableDictionary.

Methods from Deref<Target = Object>

Returns the class of self.

Returns a reference to the ivar of self with the given name. Panics if self has no ivar with the given name. Unsafe because the caller must ensure that the ivar is actually of type T.

Returns a mutable reference to the ivar of self with the given name. Panics if self has no ivar with the given name. Unsafe because the caller must ensure that the ivar is actually of type T.

Sets the value of the ivar of self with the given name. Panics if self has no ivar with the given name. Unsafe because the caller must ensure that the ivar is actually of type T.

Trait Implementations

Formats the value using the given formatter. Read more

Returns a blank NSMutableDictionary.

Derefs to the underlying Objective-C Object.

The resulting type after dereferencing.

Derefs to the underlying Objective-C Object.

Translates a HashMap of Values into an NSDictionary.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.