#[repr(C)]pub struct ProgressReportApi {
pub create: Option<unsafe extern "C" fn(a: *mut AllocatorI, task_display_time: f32)>,
pub destroy: Option<unsafe extern "C" fn()>,
pub update: Option<unsafe extern "C" fn(dt: f64, ta: *mut TempAllocatorI) -> TaskProgressT>,
pub status: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI) -> TaskStatusT>,
pub idle: Option<unsafe extern "C" fn() -> bool>,
pub set_task_progress: Option<unsafe extern "C" fn(task: u64, text: *const c_char, fraction: f32)>,
}
Fields§
§create: Option<unsafe extern "C" fn(a: *mut AllocatorI, task_display_time: f32)>
§destroy: Option<unsafe extern "C" fn()>
§update: Option<unsafe extern "C" fn(dt: f64, ta: *mut TempAllocatorI) -> TaskProgressT>
§status: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI) -> TaskStatusT>
§idle: Option<unsafe extern "C" fn() -> bool>
§set_task_progress: Option<unsafe extern "C" fn(task: u64, text: *const c_char, fraction: f32)>
Implementations§
Source§impl ProgressReportApi
impl ProgressReportApi
pub unsafe fn create(&self, a: *mut AllocatorI, task_display_time: f32)
pub unsafe fn destroy(&self)
pub unsafe fn update(&self, dt: f64, ta: *mut TempAllocatorI) -> TaskProgressT
pub unsafe fn status(&self, ta: *mut TempAllocatorI) -> TaskStatusT
pub unsafe fn idle(&self) -> bool
pub unsafe fn set_task_progress( &self, task: u64, text: *const c_char, fraction: f32, )
Trait Implementations§
Source§impl Clone for ProgressReportApi
impl Clone for ProgressReportApi
Source§fn clone(&self) -> ProgressReportApi
fn clone(&self) -> ProgressReportApi
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 ProgressReportApi
impl Default for ProgressReportApi
Source§fn default() -> ProgressReportApi
fn default() -> ProgressReportApi
Returns the “default value” for a type. Read more
impl Copy for ProgressReportApi
Auto Trait Implementations§
impl Freeze for ProgressReportApi
impl RefUnwindSafe for ProgressReportApi
impl Send for ProgressReportApi
impl Sync for ProgressReportApi
impl Unpin for ProgressReportApi
impl UnwindSafe for ProgressReportApi
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