pub struct ModelingLabel {
pub name: Option<String>,
pub subscripts: Vec<i64>,
pub parameters: FnvHashMap<String, String>,
pub description: Option<String>,
}Expand description
Structured label that preserves the element’s original modeling context.
This represents the mathematical-model notation users authored before the
model was lowered into OMMX. For example, a variable written as x[i, j]
can be represented as name = "x" with subscripts = [i, j]; a family of
constraints such as flow_limit[place] can use name = "flow limit" with
parameters = {"place": place}.
Fields§
§name: Option<String>§subscripts: Vec<i64>§parameters: FnvHashMap<String, String>§description: Option<String>Trait Implementations§
Source§impl Clone for ModelingLabel
impl Clone for ModelingLabel
Source§fn clone(&self) -> ModelingLabel
fn clone(&self) -> ModelingLabel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelingLabel
impl Debug for ModelingLabel
Source§impl Default for ModelingLabel
impl Default for ModelingLabel
Source§fn default() -> ModelingLabel
fn default() -> ModelingLabel
Returns the “default value” for a type. Read more
Source§impl From<ModelingLabel> for ModelingLabel
impl From<ModelingLabel> for ModelingLabel
Source§fn from(label: ModelingLabel) -> Self
fn from(label: ModelingLabel) -> Self
Converts to this type from the input type.
Source§impl From<ModelingLabel> for ModelingLabel
impl From<ModelingLabel> for ModelingLabel
Source§fn from(label: ModelingLabel) -> Self
fn from(label: ModelingLabel) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ModelingLabel
impl PartialEq for ModelingLabel
impl StructuralPartialEq for ModelingLabel
Auto Trait Implementations§
impl Freeze for ModelingLabel
impl RefUnwindSafe for ModelingLabel
impl Send for ModelingLabel
impl Sync for ModelingLabel
impl Unpin for ModelingLabel
impl UnsafeUnpin for ModelingLabel
impl UnwindSafe for ModelingLabel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
Converts
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> ⓘ
Converts
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