[][src]Trait objc::declare::MethodImplementation

pub trait MethodImplementation {
    type Callee: Message;
    type Ret: Encode;
    type Args: EncodeArguments;
    fn imp(self) -> Imp;
}

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

Associated Types

type Callee: Message

The callee type of the method.

type Ret: Encode

The return type of the method.

type Args: EncodeArguments

The argument types of the method.

Loading content...

Required methods

fn imp(self) -> Imp

Returns self as an Imp of a method.

Loading content...

Implementations on Foreign Types

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

type Callee = T

type Ret = R

type Args = ()

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

type Callee = T

type Ret = R

type Args = ()

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

type Callee = T

type Ret = R

type Args = (A,)

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

type Callee = T

type Ret = R

type Args = (A,)

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

type Callee = T

type Ret = R

type Args = (A, B)

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

type Callee = T

type Ret = R

type Args = (A, B)

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

type Callee = T

type Ret = R

type Args = (A, B, C)

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

type Callee = T

type Ret = R

type Args = (A, B, C)

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

type Callee = T

type Ret = R

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

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

type Callee = T

type Ret = R

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

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

type Callee = T

type Ret = R

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

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

type Callee = T

type Ret = R

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

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

type Callee = T

type Ret = R

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

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

type Callee = T

type Ret = R

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

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

type Callee = T

type Ret = R

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

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) -> R where
    T: Message,
    R: Encode,
    A: Encode,
    B: Encode,
    C: Encode,
    D: Encode,
    E: Encode,
    F: Encode,
    G: Encode
[src]

type Callee = T

type Ret = R

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

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) -> R where
    T: Message,
    R: Encode,
    A: Encode,
    B: Encode,
    C: Encode,
    D: Encode,
    E: Encode,
    F: Encode,
    G: Encode,
    H: Encode
[src]

type Callee = T

type Ret = R

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

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) -> R where
    T: Message,
    R: Encode,
    A: Encode,
    B: Encode,
    C: Encode,
    D: Encode,
    E: Encode,
    F: Encode,
    G: Encode,
    H: Encode
[src]

type Callee = T

type Ret = R

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

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) -> R where
    T: Message,
    R: Encode,
    A: Encode,
    B: Encode,
    C: Encode,
    D: Encode,
    E: Encode,
    F: Encode,
    G: Encode,
    H: Encode,
    I: Encode
[src]

type Callee = T

type Ret = R

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

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) -> R where
    T: Message,
    R: Encode,
    A: Encode,
    B: Encode,
    C: Encode,
    D: Encode,
    E: Encode,
    F: Encode,
    G: Encode,
    H: Encode,
    I: Encode
[src]

type Callee = T

type Ret = R

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

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) -> R where
    T: Message,
    R: Encode,
    A: Encode,
    B: Encode,
    C: Encode,
    D: Encode,
    E: Encode,
    F: Encode,
    G: Encode,
    H: Encode,
    I: Encode,
    J: Encode
[src]

type Callee = T

type Ret = R

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

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) -> R where
    T: Message,
    R: Encode,
    A: Encode,
    B: Encode,
    C: Encode,
    D: Encode,
    E: Encode,
    F: Encode,
    G: Encode,
    H: Encode,
    I: Encode,
    J: Encode
[src]

type Callee = T

type Ret = R

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

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) -> R where
    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
[src]

type Callee = T

type Ret = R

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

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) -> R where
    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
[src]

type Callee = T

type Ret = R

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

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) -> R where
    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
[src]

type Callee = T

type Ret = R

type Args = (A, B, C, D, E, F, G, H, I, J, K, L)

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) -> R where
    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
[src]

type Callee = T

type Ret = R

type Args = (A, B, C, D, E, F, G, H, I, J, K, L)

Loading content...

Implementors

Loading content...