Struct objc::runtime::Method [−][src]
#[repr(C)]pub struct Method { /* fields omitted */ }
A type that represents a method in a class definition.
Methods
impl Method
[src]
impl Method
pub fn name(&self) -> Sel
[src]
pub fn name(&self) -> Sel
Returns the name of self.
pub fn return_type(&self) -> Encoding
[src]
pub fn return_type(&self) -> Encoding
Returns the Encoding
of self's return type.
pub fn argument_type(&self, index: usize) -> Option<Encoding>
[src]
pub fn argument_type(&self, index: usize) -> Option<Encoding>
Returns the Encoding
of a single parameter type of self, or
None
if self has no parameter at the given index.
pub fn arguments_count(&self) -> usize
[src]
pub fn arguments_count(&self) -> usize
Returns the number of arguments accepted by self.
pub fn implementation(&self) -> Imp
[src]
pub fn implementation(&self) -> Imp
Returns the implementation of self.