pub struct Array<Identifier = String> {
pub contents: Vec<Literal<Identifier>>,
pub ann: Vec<Annotation<Identifier>>,
pub defined: bool,
pub introduced: bool,
}Expand description
A definition of a named array literal in FlatZinc
FlatZinc Arrays are a simple (one-dimensional) sequence of Literals.
These values are stored as the Array::contents member. Additional
information, in the form of Annotations, from the MiniZinc model is
stored in Array::ann when present. When Array::defined is set to
true, then
Fields§
§contents: Vec<Literal<Identifier>>The values stored within the array literal
ann: Vec<Annotation<Identifier>>List of annotations
defined: boolThis field is set to true when there is a constraint that has been marked as
defining this array.
introduced: boolThis field is set to true when the array has been introduced by the
MiniZinc compiler, rather than being explicitly defined at the top-level
of the MiniZinc model.
Trait Implementations§
Source§impl<'de, Identifier> Deserialize<'de> for Array<Identifier>where
Identifier: Deserialize<'de> + Default,
impl<'de, Identifier> Deserialize<'de> for Array<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
impl<Identifier> StructuralPartialEq for Array<Identifier>
Auto Trait Implementations§
impl<Identifier> Freeze for Array<Identifier>
impl<Identifier> RefUnwindSafe for Array<Identifier>where
Identifier: RefUnwindSafe,
impl<Identifier> Send for Array<Identifier>where
Identifier: Send,
impl<Identifier> Sync for Array<Identifier>where
Identifier: Sync,
impl<Identifier> Unpin for Array<Identifier>where
Identifier: Unpin,
impl<Identifier> UnwindSafe for Array<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