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