Struct makepad_objc_sys::runtime::Object
source · #[repr(C)]pub struct Object { /* private fields */ }
Implementations§
source§impl Object
impl Object
sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere 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
.
sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere 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
.
Trait Implementations§
source§impl Message for Object
impl Message for Object
source§unsafe fn send_message<A, R>(
&self,
sel: Sel,
args: A
) -> Result<R, MessageError>where
Self: Sized,
A: MessageArguments,
R: Any,
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
source§fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>where
Self: Sized,
A: EncodeArguments,
R: Encode,
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
Auto Trait Implementations§
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more