Enum ai_kit::constraints::SolveResult
[−]
[src]
pub enum SolveResult<T: ConstraintValue> {
Conflict,
Partial(Bindings<T>),
Success(Bindings<T>),
}Variants
ConflictA conflict was found, no solution possible
Partial(Bindings<T>)Incomplete solution; could not solve all constraints
Success(Bindings<T>)Successful solution
Methods
impl<T: ConstraintValue> SolveResult<T>[src]
fn ok(&self) -> Option<Bindings<T>>
fn and_then(&self, f: &Fn(&Bindings<T>) -> Self) -> Self
fn if_partial(&self, f: &Fn(&Bindings<T>) -> Self) -> Self
Trait Implementations
impl<T: Clone + ConstraintValue> Clone for SolveResult<T>[src]
fn clone(&self) -> SolveResult<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<T: Debug + ConstraintValue> Debug for SolveResult<T>[src]
impl<T: Eq + ConstraintValue> Eq for SolveResult<T>[src]
impl<T: PartialEq + ConstraintValue> PartialEq for SolveResult<T>[src]
fn eq(&self, __arg_0: &SolveResult<T>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &SolveResult<T>) -> bool
This method tests for !=.