Describes the instance methods implemented by self.
(&self)
| 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 { |