pub struct StructType(/* private fields */);Expand description
A struct type for reflection.
C++ equivalent: MTL::StructType
Implementations§
Source§impl StructType
impl StructType
Sourcepub fn data_type(&self) -> DataType
pub fn data_type(&self) -> DataType
Get the data type.
C++ equivalent: DataType dataType() const
Sourcepub fn member_by_name(&self, name: &str) -> Option<StructMember>
pub fn member_by_name(&self, name: &str) -> Option<StructMember>
Get a member by name.
C++ equivalent: StructMember* memberByName(const NS::String*)
Sourcepub fn members_ptr(&self) -> *const c_void
pub fn members_ptr(&self) -> *const c_void
Get the members as a raw NS::Array pointer.
C++ equivalent: NS::Array* members() const
Trait Implementations§
Source§impl Clone for StructType
impl Clone for StructType
Source§impl Drop for StructType
impl Drop for StructType
Source§impl Referencing for StructType
impl Referencing for StructType
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 StructType
impl Sync for StructType
Auto Trait Implementations§
impl Freeze for StructType
impl RefUnwindSafe for StructType
impl Unpin for StructType
impl UnwindSafe for StructType
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