pub enum Reason {
Done,
TimeLimitReached,
LowerBoundConstrained,
MaxDepthReached,
NotEnoughSupport,
NoCandidates,
PureNode,
FromSpecializedAlgorithm,
RuleReason,
None,
}Expand description
Why the search stopped at a node.
Variants§
Done
The node was fully explored.
TimeLimitReached
The time limit was reached.
LowerBoundConstrained
The node’s lower bound reaches its upper bound: no subtree can help.
MaxDepthReached
The node is at the maximum depth and becomes a leaf.
NotEnoughSupport
The node has too few instances to be split.
NoCandidates
No feature can split the node.
PureNode
The node has zero error as a leaf.
FromSpecializedAlgorithm
The node was solved by the depth-2 solver.
RuleReason
A relaxable search rule cut the search; a later pass may go further.
None
No reason recorded.
Trait Implementations§
impl Copy for Reason
Source§impl<'de> Deserialize<'de> for Reason
impl<'de> Deserialize<'de> for Reason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Freeze for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnsafeUnpin for Reason
impl UnwindSafe for Reason
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