#[repr(C)]pub struct AssetLabelApi {Show 13 fields
pub all_labels: Option<unsafe extern "C" fn(labels: *mut AssetLabelsT, tt: *const TheTruthO, asset_root: TtIdT)>,
pub labels_of_asset: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, asset_labels: *const AssetLabelsT, out_labels: *mut AssetLabelsT)>,
pub label_uuids_of_asset: Option<unsafe extern "C" fn(tt: *const TheTruthO, asset: TtIdT, ta: *mut TempAllocatorI) -> *mut u64>,
pub create: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, directory: TtIdT, label: *const c_char, undo_scope: TtUndoScopeT) -> AssetLabelUuidT>,
pub add: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, label: AssetLabelUuidT, undo_scope: TtUndoScopeT)>,
pub remove: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, label: AssetLabelUuidT, undo_scope: TtUndoScopeT)>,
pub rename: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, label: AssetLabelUuidT, new_label_name: *const c_char, undo_scope: TtUndoScopeT)>,
pub assets_with_label: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, label: AssetLabelUuidT, ta: *mut TempAllocatorI) -> *mut TtIdT>,
pub assets_with_all_labels: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, labels: *const AssetLabelBitflagT, ta: *mut TempAllocatorI) -> *mut TtIdT>,
pub assets_with_any_label: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, labels: *const AssetLabelBitflagT, ta: *mut TempAllocatorI) -> *mut TtIdT>,
pub toggle_bitflags: Option<unsafe extern "C" fn(labels: *const AssetLabelsT, bitflag: *mut AssetLabelBitflagT, labels_uuid: *const AssetLabelUuidT, num_labels: u32)>,
pub matches_all: Option<unsafe extern "C" fn(asset_bitflag: *const AssetLabelBitflagT, filter_bitflag: *const AssetLabelBitflagT) -> bool>,
pub matches_any: Option<unsafe extern "C" fn(asset_bitflag: *const AssetLabelBitflagT, filter_bitflag: *const AssetLabelBitflagT) -> bool>,
}Fields§
§all_labels: Option<unsafe extern "C" fn(labels: *mut AssetLabelsT, tt: *const TheTruthO, asset_root: TtIdT)>§labels_of_asset: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, asset_labels: *const AssetLabelsT, out_labels: *mut AssetLabelsT)>§label_uuids_of_asset: Option<unsafe extern "C" fn(tt: *const TheTruthO, asset: TtIdT, ta: *mut TempAllocatorI) -> *mut u64>§create: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, directory: TtIdT, label: *const c_char, undo_scope: TtUndoScopeT) -> AssetLabelUuidT>§add: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, label: AssetLabelUuidT, undo_scope: TtUndoScopeT)>§remove: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, label: AssetLabelUuidT, undo_scope: TtUndoScopeT)>§rename: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, label: AssetLabelUuidT, new_label_name: *const c_char, undo_scope: TtUndoScopeT)>§assets_with_label: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, label: AssetLabelUuidT, ta: *mut TempAllocatorI) -> *mut TtIdT>§assets_with_all_labels: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, labels: *const AssetLabelBitflagT, ta: *mut TempAllocatorI) -> *mut TtIdT>§assets_with_any_label: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, labels: *const AssetLabelBitflagT, ta: *mut TempAllocatorI) -> *mut TtIdT>§toggle_bitflags: Option<unsafe extern "C" fn(labels: *const AssetLabelsT, bitflag: *mut AssetLabelBitflagT, labels_uuid: *const AssetLabelUuidT, num_labels: u32)>§matches_all: Option<unsafe extern "C" fn(asset_bitflag: *const AssetLabelBitflagT, filter_bitflag: *const AssetLabelBitflagT) -> bool>§matches_any: Option<unsafe extern "C" fn(asset_bitflag: *const AssetLabelBitflagT, filter_bitflag: *const AssetLabelBitflagT) -> bool>Implementations§
Source§impl AssetLabelApi
impl AssetLabelApi
pub unsafe fn all_labels( &self, labels: *mut AssetLabelsT, tt: *const TheTruthO, asset_root: TtIdT, )
pub unsafe fn labels_of_asset( &self, tt: *mut TheTruthO, asset: TtIdT, asset_labels: *const AssetLabelsT, out_labels: *mut AssetLabelsT, )
pub unsafe fn label_uuids_of_asset( &self, tt: *const TheTruthO, asset: TtIdT, ta: *mut TempAllocatorI, ) -> *mut u64
pub unsafe fn create( &self, tt: *mut TheTruthO, asset_root: TtIdT, directory: TtIdT, label: *const c_char, undo_scope: TtUndoScopeT, ) -> AssetLabelUuidT
pub unsafe fn add( &self, tt: *mut TheTruthO, asset: TtIdT, label: AssetLabelUuidT, undo_scope: TtUndoScopeT, )
pub unsafe fn remove( &self, tt: *mut TheTruthO, asset: TtIdT, label: AssetLabelUuidT, undo_scope: TtUndoScopeT, )
pub unsafe fn rename( &self, tt: *mut TheTruthO, asset_root: TtIdT, label: AssetLabelUuidT, new_label_name: *const c_char, undo_scope: TtUndoScopeT, )
pub unsafe fn assets_with_label( &self, tt: *mut TheTruthO, asset_root: TtIdT, label: AssetLabelUuidT, ta: *mut TempAllocatorI, ) -> *mut TtIdT
pub unsafe fn assets_with_all_labels( &self, tt: *mut TheTruthO, asset_root: TtIdT, labels: *const AssetLabelBitflagT, ta: *mut TempAllocatorI, ) -> *mut TtIdT
pub unsafe fn assets_with_any_label( &self, tt: *mut TheTruthO, asset_root: TtIdT, labels: *const AssetLabelBitflagT, ta: *mut TempAllocatorI, ) -> *mut TtIdT
pub unsafe fn toggle_bitflags( &self, labels: *const AssetLabelsT, bitflag: *mut AssetLabelBitflagT, labels_uuid: *const AssetLabelUuidT, num_labels: u32, )
pub unsafe fn matches_all( &self, asset_bitflag: *const AssetLabelBitflagT, filter_bitflag: *const AssetLabelBitflagT, ) -> bool
pub unsafe fn matches_any( &self, asset_bitflag: *const AssetLabelBitflagT, filter_bitflag: *const AssetLabelBitflagT, ) -> bool
Trait Implementations§
Source§impl Clone for AssetLabelApi
impl Clone for AssetLabelApi
Source§fn clone(&self) -> AssetLabelApi
fn clone(&self) -> AssetLabelApi
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 moreSource§impl Default for AssetLabelApi
impl Default for AssetLabelApi
Source§fn default() -> AssetLabelApi
fn default() -> AssetLabelApi
Returns the “default value” for a type. Read more
impl Copy for AssetLabelApi
Auto Trait Implementations§
impl Freeze for AssetLabelApi
impl RefUnwindSafe for AssetLabelApi
impl Send for AssetLabelApi
impl Sync for AssetLabelApi
impl Unpin for AssetLabelApi
impl UnwindSafe for AssetLabelApi
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