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