pub struct PointerType(/* private fields */);Expand description
A pointer type for reflection.
C++ equivalent: MTL::PointerType
Implementations§
Source§impl PointerType
impl PointerType
Sourcepub fn data_type(&self) -> DataType
pub fn data_type(&self) -> DataType
Get the data type.
C++ equivalent: DataType dataType() const
Sourcepub fn access(&self) -> BindingAccess
pub fn access(&self) -> BindingAccess
Get the access mode.
C++ equivalent: BindingAccess access() const
Sourcepub fn alignment(&self) -> UInteger
pub fn alignment(&self) -> UInteger
Get the alignment.
C++ equivalent: NS::UInteger alignment() const
Sourcepub fn data_size(&self) -> UInteger
pub fn data_size(&self) -> UInteger
Get the data size.
C++ equivalent: NS::UInteger dataSize() const
Sourcepub fn element_type(&self) -> DataType
pub fn element_type(&self) -> DataType
Get the element type.
C++ equivalent: DataType elementType() const
Sourcepub fn element_is_argument_buffer(&self) -> bool
pub fn element_is_argument_buffer(&self) -> bool
Check if the element is an argument buffer.
C++ equivalent: bool elementIsArgumentBuffer() const
Sourcepub fn element_array_type(&self) -> Option<ArrayType>
pub fn element_array_type(&self) -> Option<ArrayType>
Get the element array type (if element is an array).
C++ equivalent: ArrayType* elementArrayType()
Sourcepub fn element_struct_type(&self) -> Option<StructType>
pub fn element_struct_type(&self) -> Option<StructType>
Get the element struct type (if element is a struct).
C++ equivalent: StructType* elementStructType()
Trait Implementations§
Source§impl Clone for PointerType
impl Clone for PointerType
Source§impl Drop for PointerType
impl Drop for PointerType
Source§impl Referencing for PointerType
impl Referencing for PointerType
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 PointerType
impl Sync for PointerType
Auto Trait Implementations§
impl Freeze for PointerType
impl RefUnwindSafe for PointerType
impl Unpin for PointerType
impl UnwindSafe for PointerType
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