Returns the name of the method specified by self.
(&self)
| 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 | /// |