#[repr(C)]pub struct CoreApi {
pub create: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root_id: TtIdT)>,
pub query_updatable: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root_id: TtIdT, include_skipped: bool, ta: *mut TempAllocatorI) -> CoreUpdatableAssetsT>,
pub update: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root_id: TtIdT, to_skip: *mut *mut CoreAssetI, num_to_skip: u32, include_skipped: bool, ta: *mut TempAllocatorI) -> CoreUpdateResultT>,
pub locate_asset: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root_id: TtIdT, core_id: StrhashT) -> TtIdT>,
}
Fields§
§create: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root_id: TtIdT)>
§query_updatable: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root_id: TtIdT, include_skipped: bool, ta: *mut TempAllocatorI) -> CoreUpdatableAssetsT>
§update: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root_id: TtIdT, to_skip: *mut *mut CoreAssetI, num_to_skip: u32, include_skipped: bool, ta: *mut TempAllocatorI) -> CoreUpdateResultT>
§locate_asset: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root_id: TtIdT, core_id: StrhashT) -> TtIdT>
Implementations§
Source§impl CoreApi
impl CoreApi
pub unsafe fn create(&self, tt: *mut TheTruthO, asset_root_id: TtIdT)
pub unsafe fn query_updatable( &self, tt: *mut TheTruthO, asset_root_id: TtIdT, include_skipped: bool, ta: *mut TempAllocatorI, ) -> CoreUpdatableAssetsT
pub unsafe fn update( &self, tt: *mut TheTruthO, asset_root_id: TtIdT, to_skip: *mut *mut CoreAssetI, num_to_skip: u32, include_skipped: bool, ta: *mut TempAllocatorI, ) -> CoreUpdateResultT
pub unsafe fn locate_asset( &self, tt: *mut TheTruthO, asset_root_id: TtIdT, core_id: StrhashT, ) -> TtIdT
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoreApi
impl RefUnwindSafe for CoreApi
impl Send for CoreApi
impl Sync for CoreApi
impl Unpin for CoreApi
impl UnwindSafe for CoreApi
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