Returns a specified instance method for self, or `None` if self and its superclasses do not contain an instance method with the specified selector.
(&self, sel: Sel)
| 334 | /// its superclasses do not contain an instance method with the |
| 335 | /// specified selector. |
| 336 | pub fn instance_method(&self, sel: Sel) -> Option<&Method> { |
| 337 | unsafe { |
| 338 | let method = class_getInstanceMethod(self, sel); |
| 339 | if method.is_null() { None } else { Some(&*method) } |
| 340 | } |
| 341 | } |
| 342 | |
| 343 | /// Returns the ivar for a specified instance variable of self, or `None` |
| 344 | /// if self has no ivar with the given name. |
no outgoing calls