pub struct Attribute(/* private fields */);Methods from Deref<Target = AttributeRef>§
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<AttributeRef> for Attribute
impl AsMut<AttributeRef> for Attribute
Source§fn as_mut(&mut self) -> &mut AttributeRef
fn as_mut(&mut self) -> &mut AttributeRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<AttributeRef> for Attribute
impl AsRef<AttributeRef> for Attribute
Source§fn as_ref(&self) -> &AttributeRef
fn as_ref(&self) -> &AttributeRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<AttributeRef> for Attribute
impl Borrow<AttributeRef> for Attribute
Source§fn borrow(&self) -> &AttributeRef
fn borrow(&self) -> &AttributeRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<AttributeRef> for Attribute
impl BorrowMut<AttributeRef> for Attribute
Source§fn borrow_mut(&mut self) -> &mut AttributeRef
fn borrow_mut(&mut self) -> &mut AttributeRef
Mutably borrows from an owned value. Read more
Source§impl Deref for Attribute
impl Deref for Attribute
Source§type Target = AttributeRef
type Target = AttributeRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &AttributeRef
fn deref(&self) -> &AttributeRef
Dereferences the value.
Source§impl DerefMut for Attribute
impl DerefMut for Attribute
Source§fn deref_mut(&mut self) -> &mut AttributeRef
fn deref_mut(&mut self) -> &mut AttributeRef
Mutably dereferences the value.
Source§impl ForeignType for Attribute
impl ForeignType for Attribute
Source§type CType = MTLAttribute
type CType = MTLAttribute
The raw C type.
Source§type Ref = AttributeRef
type Ref = AttributeRef
The type representing a reference to this type.
Source§unsafe fn from_ptr(ptr: *mut MTLAttribute) -> Attribute
unsafe fn from_ptr(ptr: *mut MTLAttribute) -> Attribute
Constructs an instance of this type from its raw type. Read more
Source§fn as_ptr(&self) -> *mut MTLAttribute
fn as_ptr(&self) -> *mut MTLAttribute
Returns a raw pointer to the wrapped value.
impl Send for Attribute
impl Sync for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Unpin for Attribute
impl UnsafeUnpin for Attribute
impl UnwindSafe for Attribute
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