MCPcopy Create free account
hub / github.com/SSheldon/rust-objc / MessageArguments

Interface MessageArguments

src/message/mod.rs:111–119  ·  view source on GitHub ↗

Types that may be used as the arguments of an Objective-C message.

Source from the content-addressed store, hash-verified

109
110/// Types that may be used as the arguments of an Objective-C message.
111pub trait MessageArguments: Sized {
112 /// Invoke an `Imp` with the given object, selector, and arguments.
113 ///
114 /// This method is the primitive used when sending messages and should not
115 /// be called directly; instead, use the `msg_send!` macro or, in cases
116 /// with a dynamic selector, the `Message::send_message` method.
117 unsafe fn invoke<R>(imp: Imp, obj: *mut Object, sel: Sel, args: Self) -> R
118 where R: Any;
119}
120
121macro_rules! message_args_impl {
122 ($($a:ident : $t:ident),*) => (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected