Expand description
Gain low-level access to the Objective-C runtime and the Objective-C root types.
Modules§
- declare
- Functionality for declaring Objective-C classes.
- macros
- Macros for working with the Objective-C runtime
- rc
- Utilities for reference counting Objective-C objects.
- runtime
- A Rust interface for the functionality of the Objective-C runtime.
- traits
- Traits for the Objective-C runtime.
Macros§
- class
- Gets a reference to a
Class
. - msg_
send - Sends a message to an object.
- sel
- Registers a selector, returning a
Sel
.
Structs§
- Encoding
- An Objective-C type encoding.
- Id
- A pointer type for Objective-C’s reference counted objects.
- Message
Error - An error encountered while attempting to send a message.
- NSValue
- A simple container for a single C or Objective-C data item.
- WeakId
- A pointer type for a weak reference to an Objective-C reference counted object.
Enums§
- Owned
- A type used to mark that a struct owns the object(s) it contains, so it has the sole references to them.
- Shared
- A type used to mark that the object(s) a struct contains are shared, so there may be other references to them.
Constants§
- nil
- Defines the id of a null instance.
Traits§
- Encode
- Types that have an Objective-C type encoding.
- Encode
Arguments - Types that represent a group of arguments, where each has an Objective-C type encoding.
- INSValue
- A trait containing all the methods for
NSValue
- Message
- Types that may be sent Objective-C messages. For example: objects, classes, and blocks.
- Message
Arguments - Types that may be used as the arguments of an Objective-C message.
- Ownership
- A type that marks what type of ownership a struct has over the object(s)
it contains; specifically, either
Owned
orShared
.