#[repr(C)]pub struct Method(_);
Expand description
A type that represents a method in a class definition.
Implementations
sourceimpl Method
impl Method
sourcepub fn return_type(&self) -> Malloc<str>
Available on crate feature malloc
only.
pub fn return_type(&self) -> Malloc<str>
malloc
only.Returns the Encoding
of self’s return type.
sourcepub fn argument_type(&self, index: usize) -> Option<Malloc<str>>
Available on crate feature malloc
only.
pub fn argument_type(&self, index: usize) -> Option<Malloc<str>>
malloc
only.Returns the Encoding
of a single parameter type of self, or
None
if self has no parameter at the given index.
sourcepub fn arguments_count(&self) -> usize
pub fn arguments_count(&self) -> usize
Returns the number of arguments accepted by self.
sourcepub fn implementation(&self) -> Imp
pub fn implementation(&self) -> Imp
Returns the implementation of self.
Trait Implementations
sourceimpl PartialEq<Method> for Method
impl PartialEq<Method> for Method
impl Eq for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl UnwindSafe for Method
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more