Struct driver_display::FrameBuffer
source · pub struct FrameBuffer<'a> { /* private fields */ }
Expand description
The framebuffer.
It’s a special memory buffer that mapped from the device memory.
Implementations§
source§impl<'a> FrameBuffer<'a>
impl<'a> FrameBuffer<'a>
sourcepub unsafe fn from_raw_parts_mut(ptr: *mut u8, len: usize) -> Self
pub unsafe fn from_raw_parts_mut(ptr: *mut u8, len: usize) -> Self
Use the given raw pointer and size as the framebuffer.
Safety
Caller must insure that the given memory region is valid and accessible.
sourcepub fn from_slice(slice: &'a mut [u8]) -> Self
pub fn from_slice(slice: &'a mut [u8]) -> Self
Use the given slice as the framebuffer.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for FrameBuffer<'a>
impl<'a> Send for FrameBuffer<'a>
impl<'a> Sync for FrameBuffer<'a>
impl<'a> Unpin for FrameBuffer<'a>
impl<'a> !UnwindSafe for FrameBuffer<'a>
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