pub struct NopPruner;Expand description
A no-op pruner: should_prune always returns
false. Use it when early-stopping isn’t wanted but the objective still
calls should_prune() so the same code runs with and without pruning.
Implementations§
Trait Implementations§
impl Copy for NopPruner
Source§impl Pruner for NopPruner
impl Pruner for NopPruner
fn should_prune(&self, _study_state: &StudyState, _trial: &Trial) -> bool
Auto Trait Implementations§
impl Freeze for NopPruner
impl RefUnwindSafe for NopPruner
impl Send for NopPruner
impl Sync for NopPruner
impl Unpin for NopPruner
impl UnsafeUnpin for NopPruner
impl UnwindSafe for NopPruner
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