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§

source

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.

Implementations on Foreign Types§

source§

impl<A, B, C, D, E, F> MessageArguments for (A, B, C, D, E, F)

source§

unsafe fn invoke<R>( imp: Imp, obj: *mut Object, sel: Sel, (a, b, c, d, e, f): Self ) -> Rwhere R: Any,

source§

impl<A> MessageArguments for (A,)

source§

unsafe fn invoke<R>(imp: Imp, obj: *mut Object, sel: Sel, (a): Self) -> Rwhere R: Any,

source§

impl<A, B, C, D, E, F, G> MessageArguments for (A, B, C, D, E, F, G)

source§

unsafe fn invoke<R>( imp: Imp, obj: *mut Object, sel: Sel, (a, b, c, d, e, f, g): Self ) -> Rwhere R: Any,

source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> MessageArguments for (A, B, C, D, E, F, G, H, I, J, K, L)

source§

unsafe fn invoke<R>( imp: Imp, obj: *mut Object, sel: Sel, (a, b, c, d, e, f, g, h, i, j, k, l): Self ) -> Rwhere R: Any,

source§

impl<A, B, C, D, E, F, G, H, I, J, K> MessageArguments for (A, B, C, D, E, F, G, H, I, J, K)

source§

unsafe fn invoke<R>( imp: Imp, obj: *mut Object, sel: Sel, (a, b, c, d, e, f, g, h, i, j, k): Self ) -> Rwhere R: Any,

source§

impl<A, B, C, D, E> MessageArguments for (A, B, C, D, E)

source§

unsafe fn invoke<R>( imp: Imp, obj: *mut Object, sel: Sel, (a, b, c, d, e): Self ) -> Rwhere R: Any,

source§

impl<A, B, C, D, E, F, G, H> MessageArguments for (A, B, C, D, E, F, G, H)

source§

unsafe fn invoke<R>( imp: Imp, obj: *mut Object, sel: Sel, (a, b, c, d, e, f, g, h): Self ) -> Rwhere R: Any,

source§

impl<A, B, C, D, E, F, G, H, I, J> MessageArguments for (A, B, C, D, E, F, G, H, I, J)

source§

unsafe fn invoke<R>( imp: Imp, obj: *mut Object, sel: Sel, (a, b, c, d, e, f, g, h, i, j): Self ) -> Rwhere R: Any,

source§

impl MessageArguments for ()

source§

unsafe fn invoke<R>(imp: Imp, obj: *mut Object, sel: Sel, (): Self) -> Rwhere R: Any,

source§

impl<A, B> MessageArguments for (A, B)

source§

unsafe fn invoke<R>(imp: Imp, obj: *mut Object, sel: Sel, (a, b): Self) -> Rwhere R: Any,

source§

impl<A, B, C, D, E, F, G, H, I> MessageArguments for (A, B, C, D, E, F, G, H, I)

source§

unsafe fn invoke<R>( imp: Imp, obj: *mut Object, sel: Sel, (a, b, c, d, e, f, g, h, i): Self ) -> Rwhere R: Any,

source§

impl<A, B, C, D> MessageArguments for (A, B, C, D)

source§

unsafe fn invoke<R>( imp: Imp, obj: *mut Object, sel: Sel, (a, b, c, d): Self ) -> Rwhere R: Any,

source§

impl<A, B, C> MessageArguments for (A, B, C)

source§

unsafe fn invoke<R>(imp: Imp, obj: *mut Object, sel: Sel, (a, b, c): Self) -> Rwhere R: Any,

Implementors§