Struct AssetDatabaseApi

Source
#[repr(C)]
pub struct AssetDatabaseApi {
Show 13 fields pub create: Option<unsafe extern "C" fn(file: *const c_char, tt: *mut TheTruthO, config: *const AssetDatabaseConfigT) -> *mut AssetDatabaseO>, pub open: Option<unsafe extern "C" fn(file: *const c_char, tt: *mut TheTruthO, config: *const AssetDatabaseConfigT) -> *mut AssetDatabaseO>, pub close: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO)>, pub save_modified: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, asset_root: TtIdT)>, pub save_modified_except: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, asset_root: TtIdT, ignore: *mut TtIdT, num_ignore: u32)>, pub save_asset: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, asset: TtIdT)>, pub delete_asset: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, asset: TtIdT)>, pub revert_asset: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, asset: TtIdT, undo_scope: TtUndoScopeT) -> bool>, pub load: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, load_fraction: *mut f32) -> TtIdT>, pub saved_name: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, item: UuidT) -> *const c_char>, pub saved_directory: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, item: UuidT) -> UuidT>, pub saved_version: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, asset: UuidT) -> u64>, pub all_saved_items: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, ta: *mut TempAllocatorI) -> *mut AssetDabaseSavedItemT>,
}

Fields§

§create: Option<unsafe extern "C" fn(file: *const c_char, tt: *mut TheTruthO, config: *const AssetDatabaseConfigT) -> *mut AssetDatabaseO>§open: Option<unsafe extern "C" fn(file: *const c_char, tt: *mut TheTruthO, config: *const AssetDatabaseConfigT) -> *mut AssetDatabaseO>§close: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO)>§save_modified: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, asset_root: TtIdT)>§save_modified_except: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, asset_root: TtIdT, ignore: *mut TtIdT, num_ignore: u32)>§save_asset: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, asset: TtIdT)>§delete_asset: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, asset: TtIdT)>§revert_asset: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, asset: TtIdT, undo_scope: TtUndoScopeT) -> bool>§load: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, load_fraction: *mut f32) -> TtIdT>§saved_name: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, item: UuidT) -> *const c_char>§saved_directory: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, item: UuidT) -> UuidT>§saved_version: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, asset: UuidT) -> u64>§all_saved_items: Option<unsafe extern "C" fn(db: *mut AssetDatabaseO, ta: *mut TempAllocatorI) -> *mut AssetDabaseSavedItemT>

Implementations§

Source§

impl AssetDatabaseApi

Source

pub unsafe fn create( &self, file: *const c_char, tt: *mut TheTruthO, config: *const AssetDatabaseConfigT, ) -> *mut AssetDatabaseO

Source

pub unsafe fn open( &self, file: *const c_char, tt: *mut TheTruthO, config: *const AssetDatabaseConfigT, ) -> *mut AssetDatabaseO

Source

pub unsafe fn close(&self, db: *mut AssetDatabaseO)

Source

pub unsafe fn save_modified(&self, db: *mut AssetDatabaseO, asset_root: TtIdT)

Source

pub unsafe fn save_modified_except( &self, db: *mut AssetDatabaseO, asset_root: TtIdT, ignore: *mut TtIdT, num_ignore: u32, )

Source

pub unsafe fn save_asset(&self, db: *mut AssetDatabaseO, asset: TtIdT)

Source

pub unsafe fn delete_asset(&self, db: *mut AssetDatabaseO, asset: TtIdT)

Source

pub unsafe fn revert_asset( &self, db: *mut AssetDatabaseO, asset: TtIdT, undo_scope: TtUndoScopeT, ) -> bool

Source

pub unsafe fn load( &self, db: *mut AssetDatabaseO, load_fraction: *mut f32, ) -> TtIdT

Source

pub unsafe fn saved_name( &self, db: *mut AssetDatabaseO, item: UuidT, ) -> *const c_char

Source

pub unsafe fn saved_directory( &self, db: *mut AssetDatabaseO, item: UuidT, ) -> UuidT

Source

pub unsafe fn saved_version(&self, db: *mut AssetDatabaseO, asset: UuidT) -> u64

Source

pub unsafe fn all_saved_items( &self, db: *mut AssetDatabaseO, ta: *mut TempAllocatorI, ) -> *mut AssetDabaseSavedItemT

Trait Implementations§

Source§

impl Api for AssetDatabaseApi

Source§

impl Clone for AssetDatabaseApi

Source§

fn clone(&self) -> AssetDatabaseApi

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for AssetDatabaseApi

Source§

fn default() -> AssetDatabaseApi

Returns the “default value” for a type. Read more
Source§

impl Copy for AssetDatabaseApi

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.