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

Method adopted_protocols

src/runtime.rs:369–375  ·  view source on GitHub ↗

Get a list of the protocols to which this class conforms.

(&self)

Source from the content-addressed store, hash-verified

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> {

Callers 2

test_protocolFunction · 0.80
test_subprotocolsFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_protocolFunction · 0.64
test_subprotocolsFunction · 0.64