Get a list of the protocols to which this class conforms.
(&self)
| 367 | |
| 368 | /// Get a list of the protocols to which this class conforms. |
| 369 | pub fn adopted_protocols(&self) -> MallocBuffer<&Protocol> { |
| 370 | unsafe { |
| 371 | let mut count: c_uint = 0; |
| 372 | let protos = class_copyProtocolList(self, &mut count); |
| 373 | MallocBuffer::new(protos as *mut _, count as usize).unwrap() |
| 374 | } |
| 375 | } |
| 376 | |
| 377 | /// Describes the instance variables declared by self. |
| 378 | pub fn instance_variables(&self) -> MallocBuffer<&Ivar> { |
no outgoing calls