#[repr(C)]pub struct _lv_draw_buf_handlers_t {
pub buf_malloc_cb: Option<unsafe extern "C" fn(usize, u32) -> *mut c_void>,
pub buf_free_cb: Option<unsafe extern "C" fn(*mut c_void)>,
pub align_pointer_cb: Option<unsafe extern "C" fn(*mut c_void, u32) -> *mut c_void>,
pub invalidate_cache_cb: Option<unsafe extern "C" fn(*const _lv_draw_buf_t, *const lv_area_t)>,
pub flush_cache_cb: Option<unsafe extern "C" fn(*const _lv_draw_buf_t, *const lv_area_t)>,
pub width_to_stride_cb: Option<unsafe extern "C" fn(u32, u32) -> u32>,
}Fields§
§buf_malloc_cb: Option<unsafe extern "C" fn(usize, u32) -> *mut c_void>§buf_free_cb: Option<unsafe extern "C" fn(*mut c_void)>§align_pointer_cb: Option<unsafe extern "C" fn(*mut c_void, u32) -> *mut c_void>§invalidate_cache_cb: Option<unsafe extern "C" fn(*const _lv_draw_buf_t, *const lv_area_t)>§flush_cache_cb: Option<unsafe extern "C" fn(*const _lv_draw_buf_t, *const lv_area_t)>§width_to_stride_cb: Option<unsafe extern "C" fn(u32, u32) -> u32>Trait Implementations§
Source§impl Clone for _lv_draw_buf_handlers_t
impl Clone for _lv_draw_buf_handlers_t
Source§fn clone(&self) -> _lv_draw_buf_handlers_t
fn clone(&self) -> _lv_draw_buf_handlers_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for _lv_draw_buf_handlers_t
impl Debug for _lv_draw_buf_handlers_t
Source§impl Default for _lv_draw_buf_handlers_t
impl Default for _lv_draw_buf_handlers_t
Source§fn default() -> _lv_draw_buf_handlers_t
fn default() -> _lv_draw_buf_handlers_t
Returns the “default value” for a type. Read more
impl Copy for _lv_draw_buf_handlers_t
Auto Trait Implementations§
impl Freeze for _lv_draw_buf_handlers_t
impl RefUnwindSafe for _lv_draw_buf_handlers_t
impl Send for _lv_draw_buf_handlers_t
impl Sync for _lv_draw_buf_handlers_t
impl Unpin for _lv_draw_buf_handlers_t
impl UnsafeUnpin for _lv_draw_buf_handlers_t
impl UnwindSafe for _lv_draw_buf_handlers_t
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