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