pub struct StructMember(/* private fields */);Expand description
A member of a struct type.
C++ equivalent: MTL::StructMember
Implementations§
Source§impl StructMember
impl StructMember
Sourcepub fn argument_index(&self) -> UInteger
pub fn argument_index(&self) -> UInteger
Get the argument index.
C++ equivalent: NS::UInteger argumentIndex() const
Sourcepub fn data_type(&self) -> DataType
pub fn data_type(&self) -> DataType
Get the data type.
C++ equivalent: DataType dataType() const
Sourcepub fn array_type(&self) -> Option<ArrayType>
pub fn array_type(&self) -> Option<ArrayType>
Get the array type (if this member is an array).
C++ equivalent: ArrayType* arrayType()
Sourcepub fn pointer_type(&self) -> Option<PointerType>
pub fn pointer_type(&self) -> Option<PointerType>
Get the pointer type (if this member is a pointer).
C++ equivalent: PointerType* pointerType()
Sourcepub fn struct_type(&self) -> Option<StructType>
pub fn struct_type(&self) -> Option<StructType>
Get the struct type (if this member is a struct).
C++ equivalent: StructType* structType()
Sourcepub fn texture_reference_type(&self) -> Option<TextureReferenceType>
pub fn texture_reference_type(&self) -> Option<TextureReferenceType>
Get the texture reference type (if this member is a texture).
C++ equivalent: TextureReferenceType* textureReferenceType()
Sourcepub fn tensor_reference_type(&self) -> Option<TensorReferenceType>
pub fn tensor_reference_type(&self) -> Option<TensorReferenceType>
Get the tensor reference type (if this member is a tensor).
C++ equivalent: TensorReferenceType* tensorReferenceType()
Trait Implementations§
Source§impl Clone for StructMember
impl Clone for StructMember
Source§impl Drop for StructMember
impl Drop for StructMember
Source§impl Referencing for StructMember
impl Referencing for StructMember
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> usize
fn retain_count(&self) -> usize
Get the retain count of the object. Read more
impl Send for StructMember
impl Sync for StructMember
Auto Trait Implementations§
impl Freeze for StructMember
impl RefUnwindSafe for StructMember
impl Unpin for StructMember
impl UnwindSafe for StructMember
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