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

Method instance_method

src/runtime.rs:336–341  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 3

test_methodFunction · 0.80
verify_message_signatureFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_methodFunction · 0.64