[][src]Trait myopic_brain::SearchTerminator

pub trait SearchTerminator {
    pub fn should_terminate(&self, ctx: &SearchContext) -> bool;
}

Represents some object which can determine whether a search should be terminated given certain context about the current state. Implementations are provided for Duration (caps the search based on time elapsed), for usize which represents a maximum search depth and for a pair (Duration, usize) which combines both checks.

Required methods

pub fn should_terminate(&self, ctx: &SearchContext) -> bool[src]

Loading content...

Implementations on Foreign Types

impl SearchTerminator for Duration[src]

impl SearchTerminator for usize[src]

impl SearchTerminator for (Duration, usize)[src]

Loading content...

Implementors

Loading content...