Skip to main content

Crate cidre_macros

Crate cidre_macros 

Source

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 impl block.
msg_send
msg_send_debug
msg_send_super
Sends sel to 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.