Struct machinery_api::foundation::BuffersI[][src]

#[repr(C)]
pub struct BuffersI { pub inst: *mut BuffersO, pub allocate: Option<unsafe extern "C" fn(inst: *mut BuffersO, size: u64, initialize: *const c_void) -> *mut c_void>, pub add: Option<unsafe extern "C" fn(inst: *mut BuffersO, data: *const c_void, size: u64, hash: u64) -> u32>, pub retain: Option<unsafe extern "C" fn(inst: *mut BuffersO, id: u32)>, pub release: Option<unsafe extern "C" fn(inst: *mut BuffersO, id: u32)>, pub get: Option<unsafe extern "C" fn(inst: *const BuffersO, id: u32, size: *mut u64) -> *const c_void>, pub size: Option<unsafe extern "C" fn(inst: *const BuffersO, id: u32) -> u64>, pub hash: Option<unsafe extern "C" fn(inst: *const BuffersO, id: u32) -> u64>, pub lookup: Option<unsafe extern "C" fn(inst: *const BuffersO, hash: u64) -> u32>, pub debug__refcount: Option<unsafe extern "C" fn(inst: *const BuffersO, id: u32) -> u32>, }

Fields

inst: *mut BuffersOallocate: Option<unsafe extern "C" fn(inst: *mut BuffersO, size: u64, initialize: *const c_void) -> *mut c_void>add: Option<unsafe extern "C" fn(inst: *mut BuffersO, data: *const c_void, size: u64, hash: u64) -> u32>retain: Option<unsafe extern "C" fn(inst: *mut BuffersO, id: u32)>release: Option<unsafe extern "C" fn(inst: *mut BuffersO, id: u32)>get: Option<unsafe extern "C" fn(inst: *const BuffersO, id: u32, size: *mut u64) -> *const c_void>size: Option<unsafe extern "C" fn(inst: *const BuffersO, id: u32) -> u64>hash: Option<unsafe extern "C" fn(inst: *const BuffersO, id: u32) -> u64>lookup: Option<unsafe extern "C" fn(inst: *const BuffersO, hash: u64) -> u32>debug__refcount: Option<unsafe extern "C" fn(inst: *const BuffersO, id: u32) -> u32>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.