pub struct MemoryView { /* private fields */ }Expand description
Represents view into memory shared with client.
Trait Implementations§
Source§impl Clone for MemoryView
impl Clone for MemoryView
Source§impl Image for MemoryView
impl Image for MemoryView
Source§impl Pixmap for MemoryView
impl Pixmap for MemoryView
Source§fn get_format(&self) -> PixelFormat
fn get_format(&self) -> PixelFormat
Returns pixel format of the pixmap.
Source§fn get_stride(&self) -> usize
fn get_stride(&self) -> usize
Return stride (width in bytes or one row) of the pixmap.
Source§fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
Returns data as mutable slice.
impl Send for MemoryView
impl Sync for MemoryView
MemoryView is Sync as long as it does not provide means to change its internals.
Auto Trait Implementations§
impl Freeze for MemoryView
impl RefUnwindSafe for MemoryView
impl Unpin for MemoryView
impl UnwindSafe for MemoryView
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