pub trait MethodImplementation {
    type Callee: Message;
    type Ret: Encode;
    type Args: EncodeArguments;

    // Required method
    fn imp(self) -> Imp;
}
Expand description

Types that can be used as the implementation of an Objective-C method.

Required Associated Types§

source

type Callee: Message

The callee type of the method.

source

type Ret: Encode

The return type of the method.

source

type Args: EncodeArguments

The argument types of the method.

Required Methods§

source

fn imp(self) -> Imp

Returns self as an Imp of a method.

Implementations on Foreign Types§

source§

impl<T, R, A, B, C, D, E, F, G, H, I, J, K> MethodImplementation for extern "C" fn(_: &T, _: Sel, _: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode, D: Encode, E: Encode, F: Encode, G: Encode, H: Encode, I: Encode, J: Encode, K: Encode,

source§

impl<T, R, A, B, C, D, E, F, G, H, I> MethodImplementation for extern "C" fn(_: &T, _: Sel, _: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode, D: Encode, E: Encode, F: Encode, G: Encode, H: Encode, I: Encode,

source§

impl<T, R, A, B, C> MethodImplementation for extern "C" fn(_: &T, _: Sel, _: A, _: B, _: C) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode,

§

type Callee = T

§

type Ret = R

§

type Args = (A, B, C)

source§

fn imp(self) -> Imp

source§

impl<T, R, A, B, C, D, E, F, G> MethodImplementation for extern "C" fn(_: &T, _: Sel, _: A, _: B, _: C, _: D, _: E, _: F, _: G) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode, D: Encode, E: Encode, F: Encode, G: Encode,

§

type Callee = T

§

type Ret = R

§

type Args = (A, B, C, D, E, F, G)

source§

fn imp(self) -> Imp

source§

impl<T, R, A, B, C, D, E, F, G, H, I, J, K, L> MethodImplementation for extern "C" fn(_: &mut T, _: Sel, _: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode, D: Encode, E: Encode, F: Encode, G: Encode, H: Encode, I: Encode, J: Encode, K: Encode, L: Encode,

source§

impl<T, R, A, B> MethodImplementation for extern "C" fn(_: &mut T, _: Sel, _: A, _: B) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode,

§

type Callee = T

§

type Ret = R

§

type Args = (A, B)

source§

fn imp(self) -> Imp

source§

impl<T, R> MethodImplementation for extern "C" fn(_: &mut T, _: Sel) -> Rwhere T: Message, R: Encode,

§

type Callee = T

§

type Ret = R

§

type Args = ()

source§

fn imp(self) -> Imp

source§

impl<T, R, A, B, C, D, E, F, G, H, I, J> MethodImplementation for extern "C" fn(_: &T, _: Sel, _: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode, D: Encode, E: Encode, F: Encode, G: Encode, H: Encode, I: Encode, J: Encode,

source§

impl<T, R, A, B, C, D, E, F, G, H, I> MethodImplementation for extern "C" fn(_: &mut T, _: Sel, _: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode, D: Encode, E: Encode, F: Encode, G: Encode, H: Encode, I: Encode,

source§

impl<T, R, A, B> MethodImplementation for extern "C" fn(_: &T, _: Sel, _: A, _: B) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode,

§

type Callee = T

§

type Ret = R

§

type Args = (A, B)

source§

fn imp(self) -> Imp

source§

impl<T, R, A, B, C, D, E> MethodImplementation for extern "C" fn(_: &mut T, _: Sel, _: A, _: B, _: C, _: D, _: E) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode, D: Encode, E: Encode,

§

type Callee = T

§

type Ret = R

§

type Args = (A, B, C, D, E)

source§

fn imp(self) -> Imp

source§

impl<T, R, A, B, C, D, E, F, G, H, I, J, K, L> MethodImplementation for extern "C" fn(_: &T, _: Sel, _: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode, D: Encode, E: Encode, F: Encode, G: Encode, H: Encode, I: Encode, J: Encode, K: Encode, L: Encode,

source§

impl<T, R, A, B, C> MethodImplementation for extern "C" fn(_: &mut T, _: Sel, _: A, _: B, _: C) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode,

§

type Callee = T

§

type Ret = R

§

type Args = (A, B, C)

source§

fn imp(self) -> Imp

source§

impl<T, R, A> MethodImplementation for extern "C" fn(_: &mut T, _: Sel, _: A) -> Rwhere T: Message, R: Encode, A: Encode,

§

type Callee = T

§

type Ret = R

§

type Args = (A,)

source§

fn imp(self) -> Imp

source§

impl<T, R> MethodImplementation for extern "C" fn(_: &T, _: Sel) -> Rwhere T: Message, R: Encode,

§

type Callee = T

§

type Ret = R

§

type Args = ()

source§

fn imp(self) -> Imp

source§

impl<T, R, A, B, C, D, E, F, G, H> MethodImplementation for extern "C" fn(_: &T, _: Sel, _: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode, D: Encode, E: Encode, F: Encode, G: Encode, H: Encode,

§

type Callee = T

§

type Ret = R

§

type Args = (A, B, C, D, E, F, G, H)

source§

fn imp(self) -> Imp

source§

impl<T, R, A, B, C, D, E, F> MethodImplementation for extern "C" fn(_: &T, _: Sel, _: A, _: B, _: C, _: D, _: E, _: F) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode, D: Encode, E: Encode, F: Encode,

§

type Callee = T

§

type Ret = R

§

type Args = (A, B, C, D, E, F)

source§

fn imp(self) -> Imp

source§

impl<T, R, A> MethodImplementation for extern "C" fn(_: &T, _: Sel, _: A) -> Rwhere T: Message, R: Encode, A: Encode,

§

type Callee = T

§

type Ret = R

§

type Args = (A,)

source§

fn imp(self) -> Imp

source§

impl<T, R, A, B, C, D, E, F, G> MethodImplementation for extern "C" fn(_: &mut T, _: Sel, _: A, _: B, _: C, _: D, _: E, _: F, _: G) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode, D: Encode, E: Encode, F: Encode, G: Encode,

§

type Callee = T

§

type Ret = R

§

type Args = (A, B, C, D, E, F, G)

source§

fn imp(self) -> Imp

source§

impl<T, R, A, B, C, D, E, F> MethodImplementation for extern "C" fn(_: &mut T, _: Sel, _: A, _: B, _: C, _: D, _: E, _: F) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode, D: Encode, E: Encode, F: Encode,

§

type Callee = T

§

type Ret = R

§

type Args = (A, B, C, D, E, F)

source§

fn imp(self) -> Imp

source§

impl<T, R, A, B, C, D, E> MethodImplementation for extern "C" fn(_: &T, _: Sel, _: A, _: B, _: C, _: D, _: E) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode, D: Encode, E: Encode,

§

type Callee = T

§

type Ret = R

§

type Args = (A, B, C, D, E)

source§

fn imp(self) -> Imp

source§

impl<T, R, A, B, C, D> MethodImplementation for extern "C" fn(_: &T, _: Sel, _: A, _: B, _: C, _: D) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode, D: Encode,

§

type Callee = T

§

type Ret = R

§

type Args = (A, B, C, D)

source§

fn imp(self) -> Imp

source§

impl<T, R, A, B, C, D> MethodImplementation for extern "C" fn(_: &mut T, _: Sel, _: A, _: B, _: C, _: D) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode, D: Encode,

§

type Callee = T

§

type Ret = R

§

type Args = (A, B, C, D)

source§

fn imp(self) -> Imp

source§

impl<T, R, A, B, C, D, E, F, G, H, I, J, K> MethodImplementation for extern "C" fn(_: &mut T, _: Sel, _: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode, D: Encode, E: Encode, F: Encode, G: Encode, H: Encode, I: Encode, J: Encode, K: Encode,

source§

impl<T, R, A, B, C, D, E, F, G, H> MethodImplementation for extern "C" fn(_: &mut T, _: Sel, _: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode, D: Encode, E: Encode, F: Encode, G: Encode, H: Encode,

§

type Callee = T

§

type Ret = R

§

type Args = (A, B, C, D, E, F, G, H)

source§

fn imp(self) -> Imp

source§

impl<T, R, A, B, C, D, E, F, G, H, I, J> MethodImplementation for extern "C" fn(_: &mut T, _: Sel, _: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J) -> Rwhere T: Message, R: Encode, A: Encode, B: Encode, C: Encode, D: Encode, E: Encode, F: Encode, G: Encode, H: Encode, I: Encode, J: Encode,

Implementors§