#[non_exhaustive]pub enum Result {
Error(String),
Solution(Solution),
Infeasible(Infeasible),
Unbounded(Unbounded),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Error(String)
Error information by the solver which cannot be expressed by other messages. This string should be human-readable.
Solution(Solution)
Some feasible or infeasible solution for the problem is found. Most of heuristic solvers should use this value.
Infeasible(Infeasible)
The solver proved that the problem is infeasible, i.e. all solutions of the problem are infeasible.
If the solver cannot get the proof of infeasibility,
and just cannot find any feasible solution due to the time limit or due to heuristic algorithm limitation,
the solver should return its best Solution message with feasible field set to false.
Unbounded(Unbounded)
The solver proved that the problem is unbounded.
Implementations§
Source§impl Result
impl Result
Sourcepub fn merge<B>(
field: &mut Option<Result>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<Result>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
impl StructuralPartialEq for Result
Auto Trait Implementations§
impl Freeze for Result
impl RefUnwindSafe for Result
impl Send for Result
impl Sync for Result
impl Unpin for Result
impl UnsafeUnpin for Result
impl UnwindSafe for Result
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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