#[repr(C)]pub struct RendererInitApi {
pub init: Option<unsafe extern "C" fn(allocator: *mut AllocatorI, user_data_size: u64) -> *mut RendererApi>,
pub shutdown: Option<unsafe extern "C" fn()>,
}
Fields§
§init: Option<unsafe extern "C" fn(allocator: *mut AllocatorI, user_data_size: u64) -> *mut RendererApi>
§shutdown: Option<unsafe extern "C" fn()>
Implementations§
Source§impl RendererInitApi
impl RendererInitApi
pub unsafe fn init( &self, allocator: *mut AllocatorI, user_data_size: u64, ) -> *mut RendererApi
pub unsafe fn shutdown(&self)
Trait Implementations§
Source§impl Clone for RendererInitApi
impl Clone for RendererInitApi
Source§fn clone(&self) -> RendererInitApi
fn clone(&self) -> RendererInitApi
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 RendererInitApi
impl Default for RendererInitApi
Source§fn default() -> RendererInitApi
fn default() -> RendererInitApi
Returns the “default value” for a type. Read more
impl Copy for RendererInitApi
Auto Trait Implementations§
impl Freeze for RendererInitApi
impl RefUnwindSafe for RendererInitApi
impl Send for RendererInitApi
impl Sync for RendererInitApi
impl Unpin for RendererInitApi
impl UnwindSafe for RendererInitApi
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