#[repr(C)]pub struct tm_asset_io_i {
pub inst: *mut tm_asset_io_o,
pub enabled: Option<unsafe extern "C" fn(inst: *mut tm_asset_io_o) -> bool>,
pub can_import: Option<unsafe extern "C" fn(inst: *mut tm_asset_io_o, extension: *const c_char) -> bool>,
pub can_reimport: Option<unsafe extern "C" fn(inst: *mut tm_asset_io_o, tt: *mut tm_the_truth_o, asset: tm_tt_id_t) -> bool>,
pub importer_extensions_string: Option<unsafe extern "C" fn(inst: *mut tm_asset_io_o, output: *mut *mut c_char, ta: *mut tm_temp_allocator_i, separator: *const c_char)>,
pub importer_description_string: Option<unsafe extern "C" fn(inst: *mut tm_asset_io_o, output: *mut *mut c_char, ta: *mut tm_temp_allocator_i, separator: *const c_char)>,
pub import_asset: Option<unsafe extern "C" fn(inst: *mut tm_asset_io_o, file: *const c_char, import: *const tm_asset_io_import) -> u64>,
pub can_export: Option<unsafe extern "C" fn(inst: *mut tm_asset_io_o, tt: *mut tm_the_truth_o, asset: tm_tt_id_t) -> bool>,
pub exporter_extension: Option<unsafe extern "C" fn(inst: *mut tm_asset_io_o, tt: *mut tm_the_truth_o, asset: tm_tt_id_t) -> *const c_char>,
pub export_asset: Option<unsafe extern "C" fn(inst: *mut tm_asset_io_o, file: *const c_char, tt: *mut tm_the_truth_o, asset_root: tm_tt_id_t, asset: tm_tt_id_t)>,
}Fields§
§inst: *mut tm_asset_io_o§enabled: Option<unsafe extern "C" fn(inst: *mut tm_asset_io_o) -> bool>§can_import: Option<unsafe extern "C" fn(inst: *mut tm_asset_io_o, extension: *const c_char) -> bool>§can_reimport: Option<unsafe extern "C" fn(inst: *mut tm_asset_io_o, tt: *mut tm_the_truth_o, asset: tm_tt_id_t) -> bool>§importer_extensions_string: Option<unsafe extern "C" fn(inst: *mut tm_asset_io_o, output: *mut *mut c_char, ta: *mut tm_temp_allocator_i, separator: *const c_char)>§importer_description_string: Option<unsafe extern "C" fn(inst: *mut tm_asset_io_o, output: *mut *mut c_char, ta: *mut tm_temp_allocator_i, separator: *const c_char)>§import_asset: Option<unsafe extern "C" fn(inst: *mut tm_asset_io_o, file: *const c_char, import: *const tm_asset_io_import) -> u64>§can_export: Option<unsafe extern "C" fn(inst: *mut tm_asset_io_o, tt: *mut tm_the_truth_o, asset: tm_tt_id_t) -> bool>§exporter_extension: Option<unsafe extern "C" fn(inst: *mut tm_asset_io_o, tt: *mut tm_the_truth_o, asset: tm_tt_id_t) -> *const c_char>§export_asset: Option<unsafe extern "C" fn(inst: *mut tm_asset_io_o, file: *const c_char, tt: *mut tm_the_truth_o, asset_root: tm_tt_id_t, asset: tm_tt_id_t)>Trait Implementations§
Source§impl Clone for tm_asset_io_i
impl Clone for tm_asset_io_i
Source§fn clone(&self) -> tm_asset_io_i
fn clone(&self) -> tm_asset_io_i
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 moreimpl Copy for tm_asset_io_i
Auto Trait Implementations§
impl Freeze for tm_asset_io_i
impl RefUnwindSafe for tm_asset_io_i
impl !Send for tm_asset_io_i
impl !Sync for tm_asset_io_i
impl Unpin for tm_asset_io_i
impl UnsafeUnpin for tm_asset_io_i
impl UnwindSafe for tm_asset_io_i
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