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

Method instance_methods

src/runtime.rs:354–361  ·  view source on GitHub ↗

Describes the instance methods implemented by self.

(&self)

Source from the content-addressed store, hash-verified

352
353 /// Describes the instance methods implemented by self.
354 pub fn instance_methods(&self) -> MallocBuffer<&Method> {
355 unsafe {
356 let mut count: c_uint = 0;
357 let methods = class_copyMethodList(self, &mut count);
358 MallocBuffer::new(methods as *mut _, count as usize).unwrap()
359 }
360
361 }
362
363 /// Checks whether this class conforms to the specified protocol.
364 pub fn conforms_to(&self, proto: &Protocol) -> bool {

Callers 1

test_methodFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_methodFunction · 0.64