pub struct VertexAttributeRef(/* private fields */);
Expand description
A borrowed reference to a VertexAttribute
.
Implementations§
Source§impl VertexAttributeRef
impl VertexAttributeRef
pub fn name(&self) -> &str
pub fn attribute_index(&self) -> u64
pub fn attribute_type(&self) -> MTLDataType
pub fn is_active(&self) -> bool
Sourcepub fn is_patch_data(&self) -> bool
pub fn is_patch_data(&self) -> bool
Only available on (macos(10.12), ios(10.0)
Sourcepub fn is_patch_control_point_data(&self) -> bool
pub fn is_patch_control_point_data(&self) -> bool
Only available on (macos(10.12), ios(10.0)
Trait Implementations§
Source§impl AsMut<VertexAttributeRef> for VertexAttribute
impl AsMut<VertexAttributeRef> for VertexAttribute
Source§fn as_mut(&mut self) -> &mut VertexAttributeRef
fn as_mut(&mut self) -> &mut VertexAttributeRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<VertexAttributeRef> for VertexAttribute
impl AsRef<VertexAttributeRef> for VertexAttribute
Source§fn as_ref(&self) -> &VertexAttributeRef
fn as_ref(&self) -> &VertexAttributeRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<VertexAttributeRef> for VertexAttribute
impl Borrow<VertexAttributeRef> for VertexAttribute
Source§fn borrow(&self) -> &VertexAttributeRef
fn borrow(&self) -> &VertexAttributeRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<VertexAttributeRef> for VertexAttribute
impl BorrowMut<VertexAttributeRef> for VertexAttribute
Source§fn borrow_mut(&mut self) -> &mut VertexAttributeRef
fn borrow_mut(&mut self) -> &mut VertexAttributeRef
Mutably borrows from an owned value. Read more
Source§impl Debug for VertexAttributeRef
impl Debug for VertexAttributeRef
Source§impl ForeignTypeRef for VertexAttributeRef
impl ForeignTypeRef for VertexAttributeRef
Source§type CType = MTLVertexAttribute
type CType = MTLVertexAttribute
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 VertexAttributeRef
impl Message for VertexAttributeRef
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 VertexAttributeRef
impl ToOwned for VertexAttributeRef
Source§type Owned = VertexAttribute
type Owned = VertexAttribute
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> VertexAttribute
fn to_owned(&self) -> VertexAttribute
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 VertexAttributeRef
impl Sync for VertexAttributeRef
Auto Trait Implementations§
impl Freeze for VertexAttributeRef
impl !RefUnwindSafe for VertexAttributeRef
impl Unpin for VertexAttributeRef
impl UnwindSafe for VertexAttributeRef
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