pub struct AttributeDescriptorRef(/* private fields */);Expand description
A borrowed reference to a AttributeDescriptor.
Implementations§
Source§impl AttributeDescriptorRef
impl AttributeDescriptorRef
pub fn buffer_index(&self) -> NSUInteger
pub fn set_buffer_index(&self, buffer_index: NSUInteger)
pub fn format(&self) -> MTLAttributeFormat
pub fn set_format(&self, format: MTLAttributeFormat)
pub fn offset(&self) -> NSUInteger
pub fn set_offset(&self, offset: NSUInteger)
Trait Implementations§
Source§impl AsMut<AttributeDescriptorRef> for AttributeDescriptor
impl AsMut<AttributeDescriptorRef> for AttributeDescriptor
Source§fn as_mut(&mut self) -> &mut AttributeDescriptorRef
fn as_mut(&mut self) -> &mut AttributeDescriptorRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<AttributeDescriptorRef> for AttributeDescriptor
impl AsRef<AttributeDescriptorRef> for AttributeDescriptor
Source§fn as_ref(&self) -> &AttributeDescriptorRef
fn as_ref(&self) -> &AttributeDescriptorRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<AttributeDescriptorRef> for AttributeDescriptor
impl Borrow<AttributeDescriptorRef> for AttributeDescriptor
Source§fn borrow(&self) -> &AttributeDescriptorRef
fn borrow(&self) -> &AttributeDescriptorRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<AttributeDescriptorRef> for AttributeDescriptor
impl BorrowMut<AttributeDescriptorRef> for AttributeDescriptor
Source§fn borrow_mut(&mut self) -> &mut AttributeDescriptorRef
fn borrow_mut(&mut self) -> &mut AttributeDescriptorRef
Mutably borrows from an owned value. Read more
Source§impl Debug for AttributeDescriptorRef
impl Debug for AttributeDescriptorRef
Source§impl ForeignTypeRef for AttributeDescriptorRef
impl ForeignTypeRef for AttributeDescriptorRef
Source§type CType = MTLAttributeDescriptor
type CType = MTLAttributeDescriptor
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 AttributeDescriptorRef
impl Message for AttributeDescriptorRef
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 AttributeDescriptorRef
impl Sync for AttributeDescriptorRef
Source§impl ToOwned for AttributeDescriptorRef
impl ToOwned for AttributeDescriptorRef
Source§type Owned = AttributeDescriptor
type Owned = AttributeDescriptor
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> AttributeDescriptor
fn to_owned(&self) -> AttributeDescriptor
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 AttributeDescriptorRef
impl Freeze for AttributeDescriptorRef
impl Unpin for AttributeDescriptorRef
impl UnsafeUnpin for AttributeDescriptorRef
impl UnwindSafe for AttributeDescriptorRef
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