pub struct SplitProgress<P> { /* private fields */ }
Implementations§
source§impl<P: ProgressCallback> SplitProgress<P>
impl<P: ProgressCallback> SplitProgress<P>
pub fn new(callback: P, subpart_weights: &'static [usize]) -> Self
pub fn next_subpart(&mut self) -> Option<SplitProgressInstance<'_, P>>
Trait Implementations§
source§impl<P: ProgressCallback> SplitProgressBuilder for SplitProgress<P>
impl<P: ProgressCallback> SplitProgressBuilder for SplitProgress<P>
type Progress<'a> = SplitProgressInstance<'a, P> where Self: 'a
fn next_subpart(&mut self) -> Option<Self::Progress<'_>>
Auto Trait Implementations§
impl<P> Freeze for SplitProgress<P>where
P: Freeze,
impl<P> RefUnwindSafe for SplitProgress<P>where
P: RefUnwindSafe,
impl<P> Send for SplitProgress<P>where
P: Send,
impl<P> Sync for SplitProgress<P>where
P: Sync,
impl<P> Unpin for SplitProgress<P>where
P: Unpin,
impl<P> UnwindSafe for SplitProgress<P>where
P: UnwindSafe,
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