pub struct IOSurface(/* private fields */);Implementations§
Source§impl IOSurface
impl IOSurface
pub fn from_raw(ptr: *mut c_void) -> Option<Self>
Sourcepub unsafe fn from_ptr(ptr: *mut c_void) -> Self
pub unsafe fn from_ptr(ptr: *mut c_void) -> Self
§Safety
The caller must ensure the pointer is a valid IOSurface pointer.
pub fn as_ptr(&self) -> *mut c_void
pub fn get_width(&self) -> usize
pub fn get_height(&self) -> usize
pub fn get_bytes_per_row(&self) -> usize
Trait Implementations§
impl Eq for IOSurface
impl Send for IOSurface
impl Sync for IOSurface
Auto Trait Implementations§
impl Freeze for IOSurface
impl RefUnwindSafe for IOSurface
impl Unpin for IOSurface
impl UnwindSafe for IOSurface
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