Trait objc2::Message [−][src]
pub unsafe trait Message: RefEncode { }
Expand description
Types that can be sent Objective-C messages.
Examples include objects, classes, and blocks.
Implementing this provides MessageReceiver
implementations for common
pointer types and references to the type, which allows using them as the
receiver (first argument) in the msg_send!
macro.
Safety
A pointer to the type must be able to be the receiver of an Objective-C
message sent with objc_msgSend
or similar.
Additionally, the type must implement RefEncode
and adhere to the
safety requirements therein.