Struct machinery_api::foundation::AssetIoI[][src]

#[repr(C)]
pub struct AssetIoI { pub inst: *mut AssetIoO, pub enabled: Option<unsafe extern "C" fn(inst: *mut AssetIoO) -> bool>, pub can_import: Option<unsafe extern "C" fn(inst: *mut AssetIoO, extension: *const c_char) -> bool>, pub can_reimport: Option<unsafe extern "C" fn(inst: *mut AssetIoO, tt: *mut TheTruthO, asset: TtIdT) -> bool>, pub importer_extensions_string: Option<unsafe extern "C" fn(inst: *mut AssetIoO, output: *mut *mut c_char, ta: *mut TempAllocatorI, separator: *const c_char)>, pub importer_description_string: Option<unsafe extern "C" fn(inst: *mut AssetIoO, output: *mut *mut c_char, ta: *mut TempAllocatorI, separator: *const c_char)>, pub import_asset: Option<unsafe extern "C" fn(inst: *mut AssetIoO, file: *const c_char, import: *const AssetIoImport) -> u64>, pub can_export: Option<unsafe extern "C" fn(inst: *mut AssetIoO, tt: *mut TheTruthO, asset: TtIdT) -> bool>, pub exporter_extension: Option<unsafe extern "C" fn(inst: *mut AssetIoO, tt: *mut TheTruthO, asset: TtIdT) -> *const c_char>, pub export_asset: Option<unsafe extern "C" fn(inst: *mut AssetIoO, file: *const c_char, tt: *mut TheTruthO, asset_root: TtIdT, asset: TtIdT)>, }

Fields

inst: *mut AssetIoOenabled: Option<unsafe extern "C" fn(inst: *mut AssetIoO) -> bool>can_import: Option<unsafe extern "C" fn(inst: *mut AssetIoO, extension: *const c_char) -> bool>can_reimport: Option<unsafe extern "C" fn(inst: *mut AssetIoO, tt: *mut TheTruthO, asset: TtIdT) -> bool>importer_extensions_string: Option<unsafe extern "C" fn(inst: *mut AssetIoO, output: *mut *mut c_char, ta: *mut TempAllocatorI, separator: *const c_char)>importer_description_string: Option<unsafe extern "C" fn(inst: *mut AssetIoO, output: *mut *mut c_char, ta: *mut TempAllocatorI, separator: *const c_char)>import_asset: Option<unsafe extern "C" fn(inst: *mut AssetIoO, file: *const c_char, import: *const AssetIoImport) -> u64>can_export: Option<unsafe extern "C" fn(inst: *mut AssetIoO, tt: *mut TheTruthO, asset: TtIdT) -> bool>exporter_extension: Option<unsafe extern "C" fn(inst: *mut AssetIoO, tt: *mut TheTruthO, asset: TtIdT) -> *const c_char>export_asset: Option<unsafe extern "C" fn(inst: *mut AssetIoO, file: *const c_char, tt: *mut TheTruthO, asset_root: TtIdT, asset: TtIdT)>

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.