pub struct SplitProgressInstance<'a, P: ProgressCallback> { /* private fields */ }
Trait Implementations§
source§impl<P: ProgressCallback> Drop for SplitProgressInstance<'_, P>
impl<P: ProgressCallback> Drop for SplitProgressInstance<'_, P>
source§impl<P: ProgressCallback> ProgressCallback for SplitProgressInstance<'_, P>
impl<P: ProgressCallback> ProgressCallback for SplitProgressInstance<'_, P>
type SplitProgressType = SplitProgress<SplitProgressInstance<'_, P>>
fn progress(&mut self, progress: usize, total: usize) -> bool
source§fn split(self, subpart_weights: &'static [usize]) -> Self::SplitProgressType
fn split(self, subpart_weights: &'static [usize]) -> Self::SplitProgressType
Split a single progress function into proportionally sized subparts.
This function takes the original progress function and returns a new function whose signature
is the same but whose output is shortened to correspond to the specified subparts. Read more
unsafe extern "C" fn cb_progress_callback( ctxt: *mut c_void, progress: usize, total: usize, ) -> bool
unsafe fn into_raw(&mut self) -> *mut c_void
Auto Trait Implementations§
impl<'a, P> Freeze for SplitProgressInstance<'a, P>
impl<'a, P> RefUnwindSafe for SplitProgressInstance<'a, P>where
P: RefUnwindSafe,
impl<'a, P> Send for SplitProgressInstance<'a, P>where
P: Send,
impl<'a, P> Sync for SplitProgressInstance<'a, P>where
P: Sync,
impl<'a, P> Unpin for SplitProgressInstance<'a, P>
impl<'a, P> !UnwindSafe for SplitProgressInstance<'a, P>
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