pub struct Settings { /* private fields */ }
Expand description
Contains all settings for PMcore
Implementations§
Source§impl Settings
impl Settings
pub fn set_config(&mut self, config: Config)
pub fn config(&self) -> &Config
pub fn set_parameters(&mut self, parameters: Parameters)
pub fn parameters(&self) -> &Parameters
pub fn set_error(&mut self, error: Error)
pub fn error(&self) -> &Error
pub fn set_predictions(&mut self, predictions: Predictions)
pub fn predictions(&self) -> &Predictions
pub fn set_log(&mut self, log: Log)
pub fn log(&self) -> &Log
pub fn set_prior(&mut self, prior: Prior)
pub fn prior(&self) -> &Prior
pub fn set_output(&mut self, output: Output)
pub fn output(&self) -> &Output
pub fn set_convergence(&mut self, convergence: Convergence)
pub fn convergence(&self) -> &Convergence
pub fn set_advanced(&mut self, advanced: Advanced)
pub fn advanced(&self) -> &Advanced
pub fn set_cycles(&mut self, cycles: usize)
pub fn set_algorithm(&mut self, algorithm: Algorithm)
pub fn set_cache(&mut self, cache: bool)
pub fn set_gamlam(&mut self, value: f64)
pub fn set_error_type(&mut self, class: ErrorType)
pub fn set_error_poly(&mut self, poly: (f64, f64, f64, f64))
pub fn set_error_value(&mut self, value: f64)
pub fn set_idelta(&mut self, idelta: f64)
pub fn set_tad(&mut self, tad: f64)
pub fn set_log_level(&mut self, level: LogLevel)
pub fn set_log_file(&mut self, file: String)
pub fn set_prior_sampler(&mut self, sampler: String)
pub fn set_prior_points(&mut self, points: usize)
pub fn set_prior_seed(&mut self, seed: usize)
pub fn set_prior_file(&mut self, file: Option<String>)
pub fn set_output_write(&mut self, write: bool)
pub fn set_output_path(&mut self, path: impl Into<String>)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.