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