pub struct Print(/* private fields */);Expand description
This hook just prints the iteration’s values on stderr.
Implementations§
Trait Implementations§
Source§impl<P: Problem> IterHook<P> for Print
impl<P: Problem> IterHook<P> for Print
Source§fn iterated(&mut self, new: &Evaluation<P>)
fn iterated(&mut self, new: &Evaluation<P>)
Called right after the iteration is performed.
new is the newly generated evaluation yield by iterate.Source§fn better_changed(&mut self, _old: &Evaluation<P>, _new: &Evaluation<P>)
fn better_changed(&mut self, _old: &Evaluation<P>, _new: &Evaluation<P>)
Called when the “global” best is being replaced by a new evaluation.
Auto Trait Implementations§
impl Freeze for Print
impl RefUnwindSafe for Print
impl Send for Print
impl Sync for Print
impl Unpin for Print
impl UnwindSafe for Print
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