pub enum SearchStep<State> {
Continue(State),
Pruned {
reason: String,
},
Infeasible {
reason: String,
},
}Expand description
Outcome of applying a choice or propagating a state.
Variants§
Continue(State)
Continue with the supplied state.
Pruned
Drop this prefix without treating the whole problem as impossible.
Infeasible
Reject this state as locally infeasible.
Implementations§
Source§impl<State> SearchStep<State>
impl<State> SearchStep<State>
Sourcepub fn pruned(reason: impl Into<String>) -> SearchStep<State>
pub fn pruned(reason: impl Into<String>) -> SearchStep<State>
Build a pruned step with a stable reason.
Sourcepub fn infeasible(reason: impl Into<String>) -> SearchStep<State>
pub fn infeasible(reason: impl Into<String>) -> SearchStep<State>
Build an infeasible step with a stable reason.
Trait Implementations§
Source§impl<State> Clone for SearchStep<State>where
State: Clone,
impl<State> Clone for SearchStep<State>where
State: Clone,
Source§fn clone(&self) -> SearchStep<State>
fn clone(&self) -> SearchStep<State>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<State> Debug for SearchStep<State>where
State: Debug,
impl<State> Debug for SearchStep<State>where
State: Debug,
impl<State> Eq for SearchStep<State>where
State: Eq,
Source§impl<State> PartialEq for SearchStep<State>where
State: PartialEq,
impl<State> PartialEq for SearchStep<State>where
State: PartialEq,
impl<State> StructuralPartialEq for SearchStep<State>where
State: PartialEq,
Auto Trait Implementations§
impl<State> Freeze for SearchStep<State>where
State: Freeze,
impl<State> RefUnwindSafe for SearchStep<State>where
State: RefUnwindSafe,
impl<State> Send for SearchStep<State>where
State: Send,
impl<State> Sync for SearchStep<State>where
State: Sync,
impl<State> Unpin for SearchStep<State>where
State: Unpin,
impl<State> UnsafeUnpin for SearchStep<State>where
State: UnsafeUnpin,
impl<State> UnwindSafe for SearchStep<State>where
State: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more