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

Interface MethodImplementation

src/declare.rs:45–55  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

43
44/// Types that can be used as the implementation of an Objective-C method.
45pub trait MethodImplementation {
46 /// The callee type of the method.
47 type Callee: Message;
48 /// The return type of the method.
49 type Ret: Encode;
50 /// The argument types of the method.
51 type Args: EncodeArguments;
52
53 /// Returns self as an `Imp` of a method.
54 fn imp(self) -> Imp;
55}
56
57macro_rules! method_decl_impl {
58 (-$s:ident, $r:ident, $f:ty, $($t:ident),*) => (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected