Struct objc::runtime::Object [−][src]
#[repr(C)]pub struct Object { /* fields omitted */ }
A type that represents an instance of a class.
Methods
impl Object
[src]
impl Object
pub fn class(&self) -> &Class
[src]
pub fn class(&self) -> &Class
Returns the class of self.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &T where
T: Encode,
[src]
pub unsafe fn get_ivar<T>(&self, name: &str) -> &T where
T: Encode,
Returns a reference to the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T
.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut T where
T: Encode,
[src]
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut T where
T: Encode,
Returns a mutable reference to the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T
.
pub unsafe fn set_ivar<T>(&mut self, name: &str, value: T) where
T: Encode,
[src]
pub unsafe fn set_ivar<T>(&mut self, name: &str, value: T) where
T: Encode,
Sets the value of the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T
.
Trait Implementations
impl Debug for Object
[src]
impl Debug for Object
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Encode for &'a Object
[src]
impl<'a> Encode for &'a Object
impl<'a> Encode for &'a mut Object
[src]
impl<'a> Encode for &'a mut Object
impl Message for Object
[src]
impl Message for Object
unsafe fn send_message<A, R>(
&self,
sel: Sel,
args: A
) -> Result<R, MessageError> where
Self: Sized,
A: MessageArguments,
R: Any,
[src]
unsafe fn send_message<A, R>(
&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,
[src]
fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError> where
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