pub struct StructType(/* private fields */);Methods from Deref<Target = StructTypeRef>§
pub fn members(&self) -> &StructMemberArrayRef
pub fn member_from_name(&self, name: &str) -> Option<&StructMemberRef>
Trait Implementations§
Source§impl AsMut<StructTypeRef> for StructType
impl AsMut<StructTypeRef> for StructType
Source§fn as_mut(&mut self) -> &mut StructTypeRef
fn as_mut(&mut self) -> &mut StructTypeRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<StructTypeRef> for StructType
impl AsRef<StructTypeRef> for StructType
Source§fn as_ref(&self) -> &StructTypeRef
fn as_ref(&self) -> &StructTypeRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<StructTypeRef> for StructType
impl Borrow<StructTypeRef> for StructType
Source§fn borrow(&self) -> &StructTypeRef
fn borrow(&self) -> &StructTypeRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<StructTypeRef> for StructType
impl BorrowMut<StructTypeRef> for StructType
Source§fn borrow_mut(&mut self) -> &mut StructTypeRef
fn borrow_mut(&mut self) -> &mut StructTypeRef
Mutably borrows from an owned value. Read more
Source§impl Clone for StructType
impl Clone for StructType
Source§fn clone(&self) -> StructType
fn clone(&self) -> StructType
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 StructType
impl Debug for StructType
Source§impl Deref for StructType
impl Deref for StructType
Source§type Target = StructTypeRef
type Target = StructTypeRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &StructTypeRef
fn deref(&self) -> &StructTypeRef
Dereferences the value.
Source§impl DerefMut for StructType
impl DerefMut for StructType
Source§fn deref_mut(&mut self) -> &mut StructTypeRef
fn deref_mut(&mut self) -> &mut StructTypeRef
Mutably dereferences the value.
Source§impl Drop for StructType
impl Drop for StructType
Source§impl ForeignType for StructType
impl ForeignType for StructType
Source§type CType = MTLStructType
type CType = MTLStructType
The raw C type.
Source§type Ref = StructTypeRef
type Ref = StructTypeRef
The type representing a reference to this type.
Source§unsafe fn from_ptr(ptr: *mut MTLStructType) -> StructType
unsafe fn from_ptr(ptr: *mut MTLStructType) -> StructType
Constructs an instance of this type from its raw type. Read more
Source§fn as_ptr(&self) -> *mut MTLStructType
fn as_ptr(&self) -> *mut MTLStructType
Returns a raw pointer to the wrapped value.
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§
§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)