pub struct Instance<Identifier = String> {
pub ty: FrameworkType,
pub variables: Vec<Variable<Identifier>>,
pub arrays: Vec<Array<Identifier>>,
pub constraints: Vec<Constraint<Identifier>>,
pub objectives: Objectives<Identifier>,
}Expand description
XCSP3 problem instance
Fields§
§ty: FrameworkTypeThe type of the framework used to express the instance.
variables: Vec<Variable<Identifier>>Definitions of the single decision variables
arrays: Vec<Array<Identifier>>Definitions of the arrays of decision variables
constraints: Vec<Constraint<Identifier>>Constraints that must be satisfied for a solution to be valid
objectives: Objectives<Identifier>The objectives to be optimized
Trait Implementations§
Source§impl<'de, Identifier: Deserialize<'de> + FromStr> Deserialize<'de> for Instance<Identifier>
impl<'de, Identifier: Deserialize<'de> + FromStr> Deserialize<'de> for Instance<Identifier>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl<Identifier> StructuralPartialEq for Instance<Identifier>
Auto Trait Implementations§
impl<Identifier> Freeze for Instance<Identifier>
impl<Identifier> RefUnwindSafe for Instance<Identifier>where
Identifier: RefUnwindSafe,
impl<Identifier> Send for Instance<Identifier>where
Identifier: Send,
impl<Identifier> Sync for Instance<Identifier>where
Identifier: Sync,
impl<Identifier> Unpin for Instance<Identifier>where
Identifier: Unpin,
impl<Identifier> UnwindSafe for Instance<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