pub struct VertexAttribute(/* private fields */);Methods from Deref<Target = 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 Clone for VertexAttribute
impl Clone for VertexAttribute
Source§fn clone(&self) -> VertexAttribute
fn clone(&self) -> VertexAttribute
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VertexAttribute
impl Debug for VertexAttribute
Source§impl Deref for VertexAttribute
impl Deref for VertexAttribute
Source§type Target = VertexAttributeRef
type Target = VertexAttributeRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &VertexAttributeRef
fn deref(&self) -> &VertexAttributeRef
Dereferences the value.
Source§impl DerefMut for VertexAttribute
impl DerefMut for VertexAttribute
Source§fn deref_mut(&mut self) -> &mut VertexAttributeRef
fn deref_mut(&mut self) -> &mut VertexAttributeRef
Mutably dereferences the value.
Source§impl Drop for VertexAttribute
impl Drop for VertexAttribute
Source§impl ForeignType for VertexAttribute
impl ForeignType for VertexAttribute
Source§type CType = MTLVertexAttribute
type CType = MTLVertexAttribute
The raw C type.
Source§type Ref = VertexAttributeRef
type Ref = VertexAttributeRef
The type representing a reference to this type.
Source§unsafe fn from_ptr(ptr: *mut MTLVertexAttribute) -> VertexAttribute
unsafe fn from_ptr(ptr: *mut MTLVertexAttribute) -> VertexAttribute
Constructs an instance of this type from its raw type. Read more
Source§fn as_ptr(&self) -> *mut MTLVertexAttribute
fn as_ptr(&self) -> *mut MTLVertexAttribute
Returns a raw pointer to the wrapped value.
impl Send for VertexAttribute
impl Sync for VertexAttribute
Auto Trait Implementations§
impl Freeze for VertexAttribute
impl RefUnwindSafe for VertexAttribute
impl Unpin for VertexAttribute
impl UnwindSafe for VertexAttribute
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)