pub struct TimeLogger<'a> { /* private fields */ }Expand description
The logger prints out time duration after finish of algorithm.
Implementations§
Trait Implementations§
Source§impl<'a, T: Display> Logger<Vec<T>> for TimeLogger<'a>
impl<'a, T: Display> Logger<Vec<T>> for TimeLogger<'a>
Source§fn resume(&mut self, _state: &dyn AlgorithmState<Vec<T>>)
fn resume(&mut self, _state: &dyn AlgorithmState<Vec<T>>)
Will be called before run algorithm (possibly after result algorithm after pause).
Source§fn finish(&mut self, _state: &dyn AlgorithmState<Vec<T>>)
fn finish(&mut self, _state: &dyn AlgorithmState<Vec<T>>)
Will be called when algorithm will be stopped.
Source§fn start(&mut self, _state: &dyn AlgorithmState<T>)
fn start(&mut self, _state: &dyn AlgorithmState<T>)
Will be called after algorithm initializing.
Source§fn next_iteration(&mut self, _state: &dyn AlgorithmState<T>)
fn next_iteration(&mut self, _state: &dyn AlgorithmState<T>)
Will be called in the end of iteration.
Auto Trait Implementations§
impl<'a> Freeze for TimeLogger<'a>
impl<'a> !RefUnwindSafe for TimeLogger<'a>
impl<'a> !Send for TimeLogger<'a>
impl<'a> !Sync for TimeLogger<'a>
impl<'a> Unpin for TimeLogger<'a>
impl<'a> UnsafeUnpin for TimeLogger<'a>
impl<'a> !UnwindSafe for TimeLogger<'a>
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