Trait objc::MessageArguments
source · pub trait MessageArguments: Sized {
// Required method
unsafe fn invoke<R>(imp: Imp, obj: *mut Object, sel: Sel, args: Self) -> R
where R: Any;
}
Expand description
Types that may be used as the arguments of an Objective-C message.
Required Methods§
sourceunsafe fn invoke<R>(imp: Imp, obj: *mut Object, sel: Sel, args: Self) -> Rwhere
R: Any,
unsafe fn invoke<R>(imp: Imp, obj: *mut Object, sel: Sel, args: Self) -> Rwhere R: Any,
Invoke an Imp
with the given object, selector, and arguments.
This method is the primitive used when sending messages and should not
be called directly; instead, use the msg_send!
macro or, in cases
with a dynamic selector, the Message::send_message
method.