pub struct BasicStrategy { /* private fields */ }
Expand description
A set of basic search strategies defined by BasicStrategyKind
.
Implementations§
Source§impl BasicStrategy
impl BasicStrategy
Sourcepub fn new(strategy: BasicStrategyKind) -> Self
pub fn new(strategy: BasicStrategyKind) -> Self
Constructor.
Trait Implementations§
Source§impl Clone for BasicStrategy
impl Clone for BasicStrategy
Source§fn clone(&self) -> BasicStrategy
fn clone(&self) -> BasicStrategy
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BasicStrategy
impl Debug for BasicStrategy
Source§impl<G: BasicSourceControlGraph> Strategy<G> for BasicStrategy
impl<G: BasicSourceControlGraph> Strategy<G> for BasicStrategy
Source§type Error = <G as BasicSourceControlGraph>::Error
type Error = <G as BasicSourceControlGraph>::Error
An error type.
Source§fn midpoint(
&self,
graph: &G,
bounds: &Bounds<G::Node>,
statuses: &IndexMap<G::Node, Status>,
) -> Result<Option<G::Node>, G::Error>
fn midpoint( &self, graph: &G, bounds: &Bounds<G::Node>, statuses: &IndexMap<G::Node, Status>, ) -> Result<Option<G::Node>, G::Error>
Return a “midpoint” for the search. Such a midpoint lies between the
success bounds and failure bounds, for some meaning of “lie between”,
which depends on the strategy details. Read more
Auto Trait Implementations§
impl Freeze for BasicStrategy
impl RefUnwindSafe for BasicStrategy
impl Send for BasicStrategy
impl Sync for BasicStrategy
impl Unpin for BasicStrategy
impl UnwindSafe for BasicStrategy
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