pub struct Array<Identifier = String> {
pub identifier: Identifier,
pub note: Option<String>,
pub size: Vec<usize>,
pub domains: Vec<(Vec<VarRef<Identifier>>, RangeList<IntVal>)>,
}Expand description
Definition of a k-dimensional arrays of variables
Fields§
§identifier: IdentifierName used to refer to the array
note: Option<String>Comment by the user
size: Vec<usize>Dimensions of the array
domains: Vec<(Vec<VarRef<Identifier>>, RangeList<IntVal>)>Domains of the variables contained within the array
Note that when several subsets of variables of an array have different
domains, a rangelist is provided for each of these subsets. The first
member of the tuple indicates the list of variables to which the domain
definition applies. The special identifier others is used to declare a
default domain for all other variables contained in the array.
Trait Implementations§
Source§impl<'de, Identifier: FromStr> Deserialize<'de> for Array<Identifier>
impl<'de, Identifier: FromStr> Deserialize<'de> for Array<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 Array<Identifier>
Auto Trait Implementations§
impl<Identifier> Freeze for Array<Identifier>where
Identifier: Freeze,
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