Struct metal::SharedEventListenerRef
source · pub struct SharedEventListenerRef(/* private fields */);
Expand description
A borrowed reference to a SharedEventListener
.
Trait Implementations§
source§fn as_mut(&mut self) -> &mut SharedEventListenerRef
fn as_mut(&mut self) -> &mut SharedEventListenerRef
Converts this type into a mutable reference of the (usually inferred) input type.
source§fn as_ref(&self) -> &SharedEventListenerRef
fn as_ref(&self) -> &SharedEventListenerRef
Converts this type into a shared reference of the (usually inferred) input type.
source§fn borrow(&self) -> &SharedEventListenerRef
fn borrow(&self) -> &SharedEventListenerRef
Immutably borrows from an owned value. Read more
source§fn borrow_mut(&mut self) -> &mut SharedEventListenerRef
fn borrow_mut(&mut self) -> &mut SharedEventListenerRef
Mutably borrows from an owned value. Read more
§type CType = MTLSharedEventListener
type CType = MTLSharedEventListener
The raw C type.
source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type. Read more
source§unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
Constructs a mutable reference of this type from its raw type. Read more
source§unsafe fn send_message<A, R>(
&self,
sel: Sel,
args: A,
) -> Result<R, MessageError>
unsafe fn send_message<A, R>( &self, sel: Sel, args: A, ) -> Result<R, MessageError>
Sends a message to self with the given selector and arguments. Read more
source§fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
Verifies that the argument and return types match the encoding of the
method for the given selector. Read more
§type Owned = SharedEventListener
type Owned = SharedEventListener
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> SharedEventListener
fn to_owned(&self) -> SharedEventListener
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
Auto Trait Implementations§
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