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

Method name

src/runtime.rs:156–161  ·  view source on GitHub ↗

Returns the name of the method specified by self.

(&self)

Source from the content-addressed store, hash-verified

154
155 /// Returns the name of the method specified by self.
156 pub fn name(&self) -> &str {
157 let name = unsafe {
158 CStr::from_ptr(sel_getName(*self))
159 };
160 str::from_utf8(name.to_bytes()).unwrap()
161 }
162
163 /// Wraps a raw pointer to a selector into a `Sel` object.
164 ///

Callers 1

count_argsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected