pub struct MetalResource { /* private fields */ }Expand description
Re-exports the Metal framework surface for this item.
Mirrors the Metal framework counterpart for MetalResource.
Mirrors the Metal framework counterpart for this type.
Implementations§
Source§impl MetalResource
impl MetalResource
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Self
pub unsafe fn from_raw(ptr: *mut c_void) -> Self
Wrap a raw, +1-retained opaque handle returned by the Swift bridge.
§Safety
ptr must be a valid, non-null, +1-retained Objective-C object pointer
whose ownership is being transferred to this value. Passing a
pointer that is already owned by another instance causes a
double-release.
Trait Implementations§
Source§impl Drop for MetalResource
impl Drop for MetalResource
impl Send for MetalResource
impl Sync for MetalResource
Auto Trait Implementations§
impl Freeze for MetalResource
impl RefUnwindSafe for MetalResource
impl Unpin for MetalResource
impl UnsafeUnpin for MetalResource
impl UnwindSafe for MetalResource
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