Verifies that the argument and return types match the encoding of the method for the given selector. This will look up the encoding of the method for the given selector, `sel`, and return a `MessageError` if any encodings differ for the arguments `A` and return type `R`. # Example ``` no_run # #[macro_use] extern crate objc; # use objc::runtime::{BOOL, Class, Obje
(&self, sel: Sel)
| 97 | ``` |
| 98 | */ |
| 99 | fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError> |
| 100 | where Self: Sized, A: EncodeArguments, R: Encode { |
| 101 | let obj = unsafe { &*(self as *const _ as *const Object) }; |
| 102 | verify_message_signature::<A, R>(obj.class(), sel) |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | unsafe impl Message for Object { } |