pub struct FunctionConstantValuesRef(/* private fields */);Expand description
A borrowed reference to a FunctionConstantValues.
Implementations§
Source§impl FunctionConstantValuesRef
impl FunctionConstantValuesRef
pub fn set_constant_value_at_index( &self, value: *const c_void, ty: MTLDataType, index: NSUInteger, )
pub fn set_constant_values_with_range( &self, values: *const c_void, ty: MTLDataType, range: NSRange, )
pub fn set_constant_value_with_name( &self, value: *const c_void, ty: MTLDataType, name: &str, )
Trait Implementations§
Source§impl AsMut<FunctionConstantValuesRef> for FunctionConstantValues
impl AsMut<FunctionConstantValuesRef> for FunctionConstantValues
Source§fn as_mut(&mut self) -> &mut FunctionConstantValuesRef
fn as_mut(&mut self) -> &mut FunctionConstantValuesRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<FunctionConstantValuesRef> for FunctionConstantValues
impl AsRef<FunctionConstantValuesRef> for FunctionConstantValues
Source§fn as_ref(&self) -> &FunctionConstantValuesRef
fn as_ref(&self) -> &FunctionConstantValuesRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<FunctionConstantValuesRef> for FunctionConstantValues
impl Borrow<FunctionConstantValuesRef> for FunctionConstantValues
Source§fn borrow(&self) -> &FunctionConstantValuesRef
fn borrow(&self) -> &FunctionConstantValuesRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<FunctionConstantValuesRef> for FunctionConstantValues
impl BorrowMut<FunctionConstantValuesRef> for FunctionConstantValues
Source§fn borrow_mut(&mut self) -> &mut FunctionConstantValuesRef
fn borrow_mut(&mut self) -> &mut FunctionConstantValuesRef
Mutably borrows from an owned value. Read more
Source§impl Debug for FunctionConstantValuesRef
impl Debug for FunctionConstantValuesRef
Source§impl ForeignTypeRef for FunctionConstantValuesRef
impl ForeignTypeRef for FunctionConstantValuesRef
Source§type CType = MTLFunctionConstantValues
type CType = MTLFunctionConstantValues
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 FunctionConstantValuesRef
impl Message for FunctionConstantValuesRef
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
impl Send for FunctionConstantValuesRef
impl Sync for FunctionConstantValuesRef
Source§impl ToOwned for FunctionConstantValuesRef
impl ToOwned for FunctionConstantValuesRef
Source§type Owned = FunctionConstantValues
type Owned = FunctionConstantValues
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> FunctionConstantValues
fn to_owned(&self) -> FunctionConstantValues
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§
impl !RefUnwindSafe for FunctionConstantValuesRef
impl Freeze for FunctionConstantValuesRef
impl Unpin for FunctionConstantValuesRef
impl UnsafeUnpin for FunctionConstantValuesRef
impl UnwindSafe for FunctionConstantValuesRef
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