pub enum InvalidSolutionData {
    Empty,
    TooMany(usize),
    TooManyDecisionVariables(usize, usize),
    StateMutationEntry(KvError),
    TransientDataEntry(KvError),
    DecVarValueTooLarge(usize),
}Expand description
check_data error.
Variants§
Empty
There must be at least one solution data.
TooMany(usize)
The number of solution data exceeds the limit.
TooManyDecisionVariables(usize, usize)
A solution data expects too many decision variables.
StateMutationEntry(KvError)
State mutation entry error.
TransientDataEntry(KvError)
Transient data entry error.
DecVarValueTooLarge(usize)
Decision variable value too large.
Trait Implementations§
source§impl Debug for InvalidSolutionData
 
impl Debug for InvalidSolutionData
source§impl Display for InvalidSolutionData
 
impl Display for InvalidSolutionData
source§impl Error for InvalidSolutionData
 
impl Error for InvalidSolutionData
1.81.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
 
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.81.0 · source§fn description(&self) -> &str
 
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<InvalidSolutionData> for InvalidSolution
 
impl From<InvalidSolutionData> for InvalidSolution
source§fn from(source: InvalidSolutionData) -> Self
 
fn from(source: InvalidSolutionData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InvalidSolutionData
impl RefUnwindSafe for InvalidSolutionData
impl Send for InvalidSolutionData
impl Sync for InvalidSolutionData
impl Unpin for InvalidSolutionData
impl UnwindSafe for InvalidSolutionData
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
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