pub struct CounterRef(/* private fields */);Expand description
A borrowed reference to a Counter.
Trait Implementations§
Source§impl AsMut<CounterRef> for Counter
impl AsMut<CounterRef> for Counter
Source§fn as_mut(&mut self) -> &mut CounterRef
fn as_mut(&mut self) -> &mut CounterRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<CounterRef> for Counter
impl AsRef<CounterRef> for Counter
Source§fn as_ref(&self) -> &CounterRef
fn as_ref(&self) -> &CounterRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<CounterRef> for Counter
impl Borrow<CounterRef> for Counter
Source§fn borrow(&self) -> &CounterRef
fn borrow(&self) -> &CounterRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<CounterRef> for Counter
impl BorrowMut<CounterRef> for Counter
Source§fn borrow_mut(&mut self) -> &mut CounterRef
fn borrow_mut(&mut self) -> &mut CounterRef
Mutably borrows from an owned value. Read more
Source§impl Debug for CounterRef
impl Debug for CounterRef
Source§impl ForeignTypeRef for CounterRef
impl ForeignTypeRef for CounterRef
Source§type CType = MTLCounter
type CType = MTLCounter
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§impl Message for CounterRef
impl Message for CounterRef
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
Source§impl ToOwned for CounterRef
impl ToOwned for CounterRef
impl Send for CounterRef
impl Sync for CounterRef
Auto Trait Implementations§
impl Freeze for CounterRef
impl !RefUnwindSafe for CounterRef
impl Unpin for CounterRef
impl UnwindSafe for CounterRef
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