#[repr(C)]pub struct ImageLoaderApi {
pub add_loader: Option<unsafe extern "C" fn(loader: *mut ImageLoaderI)>,
pub remove_loader: Option<unsafe extern "C" fn(loader: *mut ImageLoaderI)>,
pub loader_from_archive: Option<unsafe extern "C" fn(image_archive: *mut ImageArchiveI) -> *mut ImageLoaderI>,
pub loader_from_extension: Option<unsafe extern "C" fn(extension: *const c_char) -> *mut ImageLoaderI>,
pub loaders: Option<unsafe extern "C" fn(loaders: *mut *mut ImageLoaderI) -> u32>,
}
Fields§
§add_loader: Option<unsafe extern "C" fn(loader: *mut ImageLoaderI)>
§remove_loader: Option<unsafe extern "C" fn(loader: *mut ImageLoaderI)>
§loader_from_archive: Option<unsafe extern "C" fn(image_archive: *mut ImageArchiveI) -> *mut ImageLoaderI>
§loader_from_extension: Option<unsafe extern "C" fn(extension: *const c_char) -> *mut ImageLoaderI>
§loaders: Option<unsafe extern "C" fn(loaders: *mut *mut ImageLoaderI) -> u32>
Implementations§
Source§impl ImageLoaderApi
impl ImageLoaderApi
pub unsafe fn add_loader(&self, loader: *mut ImageLoaderI)
pub unsafe fn remove_loader(&self, loader: *mut ImageLoaderI)
pub unsafe fn loader_from_archive( &self, image_archive: *mut ImageArchiveI, ) -> *mut ImageLoaderI
pub unsafe fn loader_from_extension( &self, extension: *const c_char, ) -> *mut ImageLoaderI
pub unsafe fn loaders(&self, loaders: *mut *mut ImageLoaderI) -> u32
Trait Implementations§
Source§impl Clone for ImageLoaderApi
impl Clone for ImageLoaderApi
Source§fn clone(&self) -> ImageLoaderApi
fn clone(&self) -> ImageLoaderApi
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 ImageLoaderApi
impl Default for ImageLoaderApi
Source§fn default() -> ImageLoaderApi
fn default() -> ImageLoaderApi
Returns the “default value” for a type. Read more
impl Copy for ImageLoaderApi
Auto Trait Implementations§
impl Freeze for ImageLoaderApi
impl RefUnwindSafe for ImageLoaderApi
impl Send for ImageLoaderApi
impl Sync for ImageLoaderApi
impl Unpin for ImageLoaderApi
impl UnwindSafe for ImageLoaderApi
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