pub struct SolveObjective<Identifier = String> {
pub method: Method,
pub objective: Option<Literal<Identifier>>,
pub ann: Vec<Annotation<Identifier>>,
}Expand description
A specification of objective of a FlatZinc instance
Fields§
§method: MethodThe type of goal
objective: Option<Literal<Identifier>>The variable to optimize, or None if SolveObjective::method is Method::Satisfy
ann: Vec<Annotation<Identifier>>A list of annotations from the solve statement in the MiniZinc model
Note that this includes the search annotations if they are present in the model.
Trait Implementations§
Source§impl<Identifier: Clone> Clone for SolveObjective<Identifier>
impl<Identifier: Clone> Clone for SolveObjective<Identifier>
Source§fn clone(&self) -> SolveObjective<Identifier>
fn clone(&self) -> SolveObjective<Identifier>
Returns a duplicate 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<Identifier: Debug> Debug for SolveObjective<Identifier>
impl<Identifier: Debug> Debug for SolveObjective<Identifier>
Source§impl<Identifier> Default for SolveObjective<Identifier>
impl<Identifier> Default for SolveObjective<Identifier>
Source§impl<'de, Identifier> Deserialize<'de> for SolveObjective<Identifier>where
Identifier: Deserialize<'de> + Default,
impl<'de, Identifier> Deserialize<'de> for SolveObjective<Identifier>where
Identifier: Deserialize<'de> + Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Identifier: Display> Display for SolveObjective<Identifier>
impl<Identifier: Display> Display for SolveObjective<Identifier>
Source§impl<Identifier: PartialEq> PartialEq for SolveObjective<Identifier>
impl<Identifier: PartialEq> PartialEq for SolveObjective<Identifier>
Source§impl<Identifier> Serialize for SolveObjective<Identifier>where
Identifier: Serialize,
impl<Identifier> Serialize for SolveObjective<Identifier>where
Identifier: Serialize,
impl<Identifier> StructuralPartialEq for SolveObjective<Identifier>
Auto Trait Implementations§
impl<Identifier> Freeze for SolveObjective<Identifier>where
Identifier: Freeze,
impl<Identifier> RefUnwindSafe for SolveObjective<Identifier>where
Identifier: RefUnwindSafe,
impl<Identifier> Send for SolveObjective<Identifier>where
Identifier: Send,
impl<Identifier> Sync for SolveObjective<Identifier>where
Identifier: Sync,
impl<Identifier> Unpin for SolveObjective<Identifier>where
Identifier: Unpin,
impl<Identifier> UnwindSafe for SolveObjective<Identifier>where
Identifier: 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