[−][src]Struct objc::runtime::Class
A type that represents an Objective-C class.
Implementations
impl Class
[src]
pub fn get(name: &str) -> Option<&'static Class>
[src]
Returns the class definition of a specified class, or None
if the
class is not registered with the Objective-C runtime.
pub fn classes() -> MallocBuffer<&'static Class>
[src]
Obtains the list of registered class definitions.
pub fn classes_count() -> usize
[src]
Returns the total number of registered classes.
pub fn name(&self) -> &str
[src]
Returns the name of self.
pub fn superclass(&self) -> Option<&Class>
[src]
Returns the superclass of self, or None
if self is a root class.
pub fn metaclass(&self) -> &Class
[src]
Returns the metaclass of self.
pub fn instance_size(&self) -> usize
[src]
Returns the size of instances of self.
pub fn instance_method(&self, sel: Sel) -> Option<&Method>
[src]
Returns a specified instance method for self, or None
if self and
its superclasses do not contain an instance method with the
specified selector.
pub fn instance_variable(&self, name: &str) -> Option<&Ivar>
[src]
Returns the ivar for a specified instance variable of self, or None
if self has no ivar with the given name.
pub fn instance_methods(&self) -> MallocBuffer<&Method>
[src]
Describes the instance methods implemented by self.
pub fn conforms_to(&self, proto: &Protocol) -> bool
[src]
Checks whether this class conforms to the specified protocol.
pub fn adopted_protocols(&self) -> MallocBuffer<&Protocol>
[src]
Get a list of the protocols to which this class conforms.
pub fn instance_variables(&self) -> MallocBuffer<&Ivar>
[src]
Describes the instance variables declared by self.
Trait Implementations
impl Debug for Class
[src]
impl<'a> Encode for &'a Class
[src]
impl<'a> Encode for &'a mut Class
[src]
impl Eq for 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,
[src]
&self,
sel: Sel,
args: A
) -> Result<R, MessageError> where
Self: Sized,
A: MessageArguments,
R: Any,
fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError> where
Self: Sized,
A: EncodeArguments,
R: Encode,
[src]
Self: Sized,
A: EncodeArguments,
R: Encode,
impl PartialEq<Class> for Class
[src]
Auto Trait Implementations
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,