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

Method metaclass

src/runtime.rs:319–324  ·  view source on GitHub ↗

Returns the metaclass of self.

(&self)

Source from the content-addressed store, hash-verified

317
318 /// Returns the metaclass of self.
319 pub fn metaclass(&self) -> &Class {
320 unsafe {
321 let self_ptr: *const Class = self;
322 &*object_getClass(self_ptr as *const Object)
323 }
324 }
325
326 /// Returns the size of instances of self.
327 pub fn instance_size(&self) -> usize {

Callers 2

test_classFunction · 0.80
add_class_methodMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_classFunction · 0.64