[][src]Struct tm_rs::ffi::tm_asset_io_i

#[repr(C)]pub struct tm_asset_io_i {
    pub inst: *mut tm_asset_io_o,
    pub enabled: Option<unsafe extern "C" fn(*mut tm_asset_io_o) -> bool>,
    pub can_import: Option<unsafe extern "C" fn(*mut tm_asset_io_o, *const i8) -> bool>,
    pub can_reimport: Option<unsafe extern "C" fn(*mut tm_asset_io_o, *mut tm_the_truth_o, tm_tt_id_t) -> bool>,
    pub importer_extensions_string: Option<unsafe extern "C" fn(*mut tm_asset_io_o, *mut *mut i8, *mut tm_temp_allocator_i, *const i8)>,
    pub importer_description_string: Option<unsafe extern "C" fn(*mut tm_asset_io_o, *mut *mut i8, *mut tm_temp_allocator_i, *const i8)>,
    pub import_asset: Option<unsafe extern "C" fn(*mut tm_asset_io_o, *const i8, *const tm_asset_io_import) -> u64>,
    pub can_export: Option<unsafe extern "C" fn(*mut tm_asset_io_o, *mut tm_the_truth_o, tm_tt_id_t) -> bool>,
    pub exporter_extension: Option<unsafe extern "C" fn(*mut tm_asset_io_o, *mut tm_the_truth_o, tm_tt_id_t) -> *const i8>,
    pub export_asset: Option<unsafe extern "C" fn(*mut tm_asset_io_o, *const i8, *mut tm_the_truth_o, tm_tt_id_t, tm_tt_id_t)>,
}

Fields

inst: *mut tm_asset_io_oenabled: Option<unsafe extern "C" fn(*mut tm_asset_io_o) -> bool>can_import: Option<unsafe extern "C" fn(*mut tm_asset_io_o, *const i8) -> bool>can_reimport: Option<unsafe extern "C" fn(*mut tm_asset_io_o, *mut tm_the_truth_o, tm_tt_id_t) -> bool>importer_extensions_string: Option<unsafe extern "C" fn(*mut tm_asset_io_o, *mut *mut i8, *mut tm_temp_allocator_i, *const i8)>importer_description_string: Option<unsafe extern "C" fn(*mut tm_asset_io_o, *mut *mut i8, *mut tm_temp_allocator_i, *const i8)>import_asset: Option<unsafe extern "C" fn(*mut tm_asset_io_o, *const i8, *const tm_asset_io_import) -> u64>can_export: Option<unsafe extern "C" fn(*mut tm_asset_io_o, *mut tm_the_truth_o, tm_tt_id_t) -> bool>exporter_extension: Option<unsafe extern "C" fn(*mut tm_asset_io_o, *mut tm_the_truth_o, tm_tt_id_t) -> *const i8>export_asset: Option<unsafe extern "C" fn(*mut tm_asset_io_o, *const i8, *mut tm_the_truth_o, tm_tt_id_t, tm_tt_id_t)>

Trait Implementations

impl Clone for tm_asset_io_i[src]

impl Copy for tm_asset_io_i[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.