Macros§
- swift_
metadata_ accessor - The address of a Swift type’s metadata accessor, from the type’s name.
- swift_
symbol - The address of the Swift entry point a declaration names.
Attribute Macros§
- add_
methods - Registers Objective-C methods for a runtime-defined class.
- api_
available - api_
weak - init
- Declares an Objective-C initializer inside the type’s own
implblock. - msg_
send - msg_
send_ debug - msg_
send_ super - Sends
selto the superclass implementation, like[super sel]in Objective-C. - msg_
send_ super_ x86_ 64 - msg_
send_ x86_ 64 - optional
- Should generate static fn sel_xxx function that gets selector. So user can check selector with is_reponds_to_sel
- overrides
- Marker for a method override inside an
#[objc::add_methods] impl Type { .. }block. - protocol
- swift_
call - Calls a Swift entry point named by its declaration, with the registers its convention asks for derived from the Rust signature.