#[repr(C)]pub struct DeviceMemoryViewApi {
pub create: Option<unsafe extern "C" fn(allocator: *mut AllocatorI) -> *mut DeviceMemoryViewO>,
pub destroy: Option<unsafe extern "C" fn(view: *mut DeviceMemoryViewO)>,
pub ui: Option<unsafe extern "C" fn(view: *mut DeviceMemoryViewO, ui: *mut UiO, uistyle: *const UiStyleT, content_r: RectT, tab_id: u64)>,
}
Fields§
§create: Option<unsafe extern "C" fn(allocator: *mut AllocatorI) -> *mut DeviceMemoryViewO>
§destroy: Option<unsafe extern "C" fn(view: *mut DeviceMemoryViewO)>
§ui: Option<unsafe extern "C" fn(view: *mut DeviceMemoryViewO, ui: *mut UiO, uistyle: *const UiStyleT, content_r: RectT, tab_id: u64)>
Implementations§
Source§impl DeviceMemoryViewApi
impl DeviceMemoryViewApi
pub unsafe fn create( &self, allocator: *mut AllocatorI, ) -> *mut DeviceMemoryViewO
pub unsafe fn destroy(&self, view: *mut DeviceMemoryViewO)
pub unsafe fn ui( &self, view: *mut DeviceMemoryViewO, ui: *mut UiO, uistyle: *const UiStyleT, content_r: RectT, tab_id: u64, )
Trait Implementations§
Source§impl Clone for DeviceMemoryViewApi
impl Clone for DeviceMemoryViewApi
Source§fn clone(&self) -> DeviceMemoryViewApi
fn clone(&self) -> DeviceMemoryViewApi
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 Default for DeviceMemoryViewApi
impl Default for DeviceMemoryViewApi
Source§fn default() -> DeviceMemoryViewApi
fn default() -> DeviceMemoryViewApi
Returns the “default value” for a type. Read more
impl Copy for DeviceMemoryViewApi
Auto Trait Implementations§
impl Freeze for DeviceMemoryViewApi
impl RefUnwindSafe for DeviceMemoryViewApi
impl Send for DeviceMemoryViewApi
impl Sync for DeviceMemoryViewApi
impl Unpin for DeviceMemoryViewApi
impl UnwindSafe for DeviceMemoryViewApi
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