pub struct EvaluatedNamedFunction {
pub id: NamedFunctionID,
pub evaluated_value: f64,
pub name: Option<String>,
pub subscripts: Vec<i64>,
pub parameters: FnvHashMap<String, String>,
pub description: Option<String>,
/* private fields */
}Expand description
ommx.v1.EvaluatedNamedFunction with validated, typed fields.
Fields§
§id: NamedFunctionID§evaluated_value: f64§name: Option<String>§subscripts: Vec<i64>§parameters: FnvHashMap<String, String>§description: Option<String>Implementations§
Source§impl EvaluatedNamedFunction
impl EvaluatedNamedFunction
pub fn id(&self) -> NamedFunctionID
pub fn evaluated_value(&self) -> f64
Source§impl EvaluatedNamedFunction
impl EvaluatedNamedFunction
pub fn name(&self) -> &Option<String>
pub fn subscripts(&self) -> &Vec<i64>
pub fn parameters(&self) -> &FnvHashMap<String, String>
pub fn description(&self) -> &Option<String>
pub fn used_decision_variable_ids(&self) -> &VariableIDSet
Trait Implementations§
Source§impl Clone for EvaluatedNamedFunction
impl Clone for EvaluatedNamedFunction
Source§fn clone(&self) -> EvaluatedNamedFunction
fn clone(&self) -> EvaluatedNamedFunction
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 Debug for EvaluatedNamedFunction
impl Debug for EvaluatedNamedFunction
Source§impl Display for EvaluatedNamedFunction
impl Display for EvaluatedNamedFunction
Source§impl From<EvaluatedNamedFunction> for EvaluatedNamedFunction
impl From<EvaluatedNamedFunction> for EvaluatedNamedFunction
Source§fn from(_: EvaluatedNamedFunction) -> Self
fn from(_: EvaluatedNamedFunction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EvaluatedNamedFunction
impl PartialEq for EvaluatedNamedFunction
impl StructuralPartialEq for EvaluatedNamedFunction
Auto Trait Implementations§
impl Freeze for EvaluatedNamedFunction
impl RefUnwindSafe for EvaluatedNamedFunction
impl Send for EvaluatedNamedFunction
impl Sync for EvaluatedNamedFunction
impl Unpin for EvaluatedNamedFunction
impl UnwindSafe for EvaluatedNamedFunction
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> 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