makepad_objc_sys

Trait 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§

Source

unsafe fn invoke<R>(imp: Imp, obj: *mut Object, sel: Sel, args: Self) -> R
where 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl MessageArguments for ()

Source§

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

Source§

impl<A> MessageArguments for (A,)

Source§

unsafe fn invoke<R>(imp: Imp, obj: *mut Object, sel: Sel, (a): Self) -> R
where 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) -> R
where 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) -> R
where 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, ) -> R
where 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, ) -> R
where R: Any,

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, ) -> R
where 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, ) -> R
where 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, ) -> R
where 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, ) -> R
where 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, ) -> R
where 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, ) -> R
where 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, ) -> R
where R: Any,

Implementors§