pub struct StandardConfig {
pub preference: PreferenceConfig,
pub indifference: IndifferenceConfig,
pub optimisation: OptimisationConfig,
}Expand description
Standard consumer-theory configuration shared across default constructors.
Fields§
§preference: PreferenceConfigShared defaults for preference construction and numerical evaluation.
indifference: IndifferenceConfigShared defaults for indifference-curve tracing.
optimisation: OptimisationConfigShared defaults for constrained bundle optimisation.
Implementations§
Source§impl StandardConfig
impl StandardConfig
Sourcepub fn set(config: StandardConfig)
pub fn set(config: StandardConfig)
Replace the shared default consumer-theory configuration.
Sourcepub fn get() -> StandardConfig
pub fn get() -> StandardConfig
Return a snapshot of the shared default consumer-theory configuration.
Sourcepub fn validation_config(&self, validate: bool) -> ValidationConfig
pub fn validation_config(&self, validate: bool) -> ValidationConfig
Build a validation configuration from the shared defaults.
Sourcepub fn calc_config(&self) -> CalcConfig
pub fn calc_config(&self) -> CalcConfig
Build a numerical calculation configuration from the shared defaults.
Trait Implementations§
Source§impl Clone for StandardConfig
impl Clone for StandardConfig
Source§fn clone(&self) -> StandardConfig
fn clone(&self) -> StandardConfig
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 StandardConfig
impl Debug for StandardConfig
Auto Trait Implementations§
impl Freeze for StandardConfig
impl RefUnwindSafe for StandardConfig
impl Send for StandardConfig
impl Sync for StandardConfig
impl Unpin for StandardConfig
impl UnsafeUnpin for StandardConfig
impl UnwindSafe for StandardConfig
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