#[repr(C)]pub struct _fluid_sfloader_t {
pub data: *mut c_void,
pub free: Option<unsafe extern "C" fn(loader: *mut fluid_sfloader_t) -> c_int>,
pub load: Option<unsafe extern "C" fn(loader: *mut fluid_sfloader_t, filename: *const c_char) -> *mut fluid_sfont_t>,
pub fileapi: *mut fluid_fileapi_t,
}Fields§
§data: *mut c_voidPrivate data
free: Option<unsafe extern "C" fn(loader: *mut fluid_sfloader_t) -> c_int>The free must free the memory allocated for the loader in addition to any private data. It should return 0 if no error occured, non-zero otherwise.
load: Option<unsafe extern "C" fn(loader: *mut fluid_sfloader_t, filename: *const c_char) -> *mut fluid_sfont_t>Load a file. Returns NULL if an error occured.
fileapi: *mut fluid_fileapi_tCallback structure specifying file operations used during soundfont loading to allow custom loading, such as from memory
Trait Implementations§
Source§impl Clone for _fluid_sfloader_t
impl Clone for _fluid_sfloader_t
Source§fn clone(&self) -> _fluid_sfloader_t
fn clone(&self) -> _fluid_sfloader_t
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 Debug for _fluid_sfloader_t
impl Debug for _fluid_sfloader_t
impl Copy for _fluid_sfloader_t
Auto Trait Implementations§
impl Freeze for _fluid_sfloader_t
impl RefUnwindSafe for _fluid_sfloader_t
impl !Send for _fluid_sfloader_t
impl !Sync for _fluid_sfloader_t
impl Unpin for _fluid_sfloader_t
impl UnwindSafe for _fluid_sfloader_t
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