Struct objc::runtime::Class  
                   
                       [−]
                   
               [src]
#[repr(C)]pub struct Class { /* fields omitted */ }
A type that represents an Objective-C class.
Methods
impl Class[src]
fn get(name: &str) -> Option<&'static Class>
Returns the class definition of a specified class, or None if the
class is not registered with the Objective-C runtime.
fn classes() -> MallocBuffer<&'static Class>
Obtains the list of registered class definitions.
fn classes_count() -> usize
Returns the total number of registered classes.
fn name(&self) -> &str
Returns the name of self.
fn superclass(&self) -> Option<&Class>
Returns the superclass of self, or None if self is a root class.
fn metaclass(&self) -> &Class
Returns the metaclass of self.
fn instance_size(&self) -> usize
Returns the size of instances of self.
fn instance_method(&self, sel: Sel) -> Option<&Method>
Returns a specified instance method for self, or None if self and
its superclasses do not contain an instance method with the
specified selector.
fn instance_variable(&self, name: &str) -> Option<&Ivar>
Returns the ivar for a specified instance variable of self, or None
if self has no ivar with the given name.
fn instance_methods(&self) -> MallocBuffer<&Method>
Describes the instance methods implemented by self.
fn conforms_to(&self, proto: &Protocol) -> bool
Checks whether this class conforms to the specified protocol.
fn adopted_protocols(&self) -> MallocBuffer<&Protocol>
Get a list of the protocols to which this class conforms.
fn instance_variables(&self) -> MallocBuffer<&Ivar>
Describes the instance variables declared by self.
Trait Implementations
impl PartialEq for Class[src]
fn eq(&self, other: &Class) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Eq for Class[src]
impl Debug for Class[src]
impl<'a> Encode for &'a Class[src]
impl<'a> Encode for &'a mut Class[src]
impl Message for Class[src]
unsafe fn send_message<A, R>(
    &self, 
    sel: Sel, 
    args: A
) -> Result<R, MessageError> where
    Self: Sized,
    A: MessageArguments,
    R: Any, 
&self,
sel: Sel,
args: A
) -> Result<R, MessageError> where
Self: Sized,
A: MessageArguments,
R: Any,
Sends a message to self with the given selector and arguments. Read more
fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError> where
    Self: Sized,
    A: EncodeArguments,
    R: Encode, 
Self: Sized,
A: EncodeArguments,
R: Encode,
Verifies that the argument and return types match the encoding of the method for the given selector. Read more