pub struct SampledNamedFunction {
pub name: Option<String>,
pub subscripts: Vec<i64>,
pub parameters: FnvHashMap<String, String>,
pub description: Option<String>,
/* private fields */
}Expand description
Multiple sample evaluation results with deduplication
Fields§
§name: Option<String>§subscripts: Vec<i64>§parameters: FnvHashMap<String, String>§description: Option<String>Implementations§
Source§impl SampledNamedFunction
impl SampledNamedFunction
pub fn id(&self) -> &NamedFunctionID
pub fn evaluated_values(&self) -> &Sampled<f64>
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
Source§impl SampledNamedFunction
impl SampledNamedFunction
Sourcepub fn get(
&self,
sample_id: SampleID,
) -> Result<EvaluatedNamedFunction, UnknownSampleIDError>
pub fn get( &self, sample_id: SampleID, ) -> Result<EvaluatedNamedFunction, UnknownSampleIDError>
Get an evaluated named function for a specific sample ID
Trait Implementations§
Source§impl Clone for SampledNamedFunction
impl Clone for SampledNamedFunction
Source§fn clone(&self) -> SampledNamedFunction
fn clone(&self) -> SampledNamedFunction
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 SampledNamedFunction
impl Debug for SampledNamedFunction
Source§impl Display for SampledNamedFunction
impl Display for SampledNamedFunction
Source§impl From<SampledNamedFunction> for SampledNamedFunction
impl From<SampledNamedFunction> for SampledNamedFunction
Source§fn from(_: SampledNamedFunction) -> Self
fn from(_: SampledNamedFunction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SampledNamedFunction
impl PartialEq for SampledNamedFunction
impl StructuralPartialEq for SampledNamedFunction
Auto Trait Implementations§
impl Freeze for SampledNamedFunction
impl RefUnwindSafe for SampledNamedFunction
impl Send for SampledNamedFunction
impl Sync for SampledNamedFunction
impl Unpin for SampledNamedFunction
impl UnsafeUnpin for SampledNamedFunction
impl UnwindSafe for SampledNamedFunction
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