pub struct NoProgressCallback;
Trait Implementations§
source§impl ProgressCallback for NoProgressCallback
impl ProgressCallback for NoProgressCallback
type SplitProgressType = SplitProgressNop
fn progress(&mut self, _progress: usize, _total: usize) -> bool
unsafe extern "C" fn cb_progress_callback( _ctxt: *mut c_void, _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 fn into_raw(&mut self) -> *mut c_void
Auto Trait Implementations§
impl Freeze for NoProgressCallback
impl RefUnwindSafe for NoProgressCallback
impl Send for NoProgressCallback
impl Sync for NoProgressCallback
impl Unpin for NoProgressCallback
impl UnwindSafe for NoProgressCallback
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