AssetLabelApi

Struct AssetLabelApi 

Source
#[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

Source

pub unsafe fn all_labels( &self, labels: *mut AssetLabelsT, tt: *const TheTruthO, asset_root: TtIdT, )

Source

pub unsafe fn labels_of_asset( &self, tt: *mut TheTruthO, asset: TtIdT, asset_labels: *const AssetLabelsT, out_labels: *mut AssetLabelsT, )

Source

pub unsafe fn label_uuids_of_asset( &self, tt: *const TheTruthO, asset: TtIdT, ta: *mut TempAllocatorI, ) -> *mut u64

Source

pub unsafe fn create( &self, tt: *mut TheTruthO, asset_root: TtIdT, directory: TtIdT, label: *const c_char, undo_scope: TtUndoScopeT, ) -> AssetLabelUuidT

Source

pub unsafe fn add( &self, tt: *mut TheTruthO, asset: TtIdT, label: AssetLabelUuidT, undo_scope: TtUndoScopeT, )

Source

pub unsafe fn remove( &self, tt: *mut TheTruthO, asset: TtIdT, label: AssetLabelUuidT, undo_scope: TtUndoScopeT, )

Source

pub unsafe fn rename( &self, tt: *mut TheTruthO, asset_root: TtIdT, label: AssetLabelUuidT, new_label_name: *const c_char, undo_scope: TtUndoScopeT, )

Source

pub unsafe fn assets_with_label( &self, tt: *mut TheTruthO, asset_root: TtIdT, label: AssetLabelUuidT, ta: *mut TempAllocatorI, ) -> *mut TtIdT

Source

pub unsafe fn assets_with_all_labels( &self, tt: *mut TheTruthO, asset_root: TtIdT, labels: *const AssetLabelBitflagT, ta: *mut TempAllocatorI, ) -> *mut TtIdT

Source

pub unsafe fn assets_with_any_label( &self, tt: *mut TheTruthO, asset_root: TtIdT, labels: *const AssetLabelBitflagT, ta: *mut TempAllocatorI, ) -> *mut TtIdT

Source

pub unsafe fn toggle_bitflags( &self, labels: *const AssetLabelsT, bitflag: *mut AssetLabelBitflagT, labels_uuid: *const AssetLabelUuidT, num_labels: u32, )

Source

pub unsafe fn matches_all( &self, asset_bitflag: *const AssetLabelBitflagT, filter_bitflag: *const AssetLabelBitflagT, ) -> bool

Source

pub unsafe fn matches_any( &self, asset_bitflag: *const AssetLabelBitflagT, filter_bitflag: *const AssetLabelBitflagT, ) -> bool

Trait Implementations§

Source§

impl Api for AssetLabelApi

Source§

impl Clone for AssetLabelApi

Source§

fn clone(&self) -> AssetLabelApi

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 AssetLabelApi

Source§

fn default() -> AssetLabelApi

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

impl Copy for AssetLabelApi

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.