Struct follow_heating::brain::python_like::config::working_temp_model::WorkingTempCurveConfig
source · pub struct WorkingTempCurveConfig {
pub sharpness: f32,
pub turning_point: f32,
pub multiplier: f32,
pub offset: f32,
}
Fields§
§sharpness: f32
§turning_point: f32
§multiplier: f32
§offset: f32
Implementations§
source§impl WorkingTempCurveConfig
impl WorkingTempCurveConfig
pub fn get_temp_from_room_diff(&self, room_diff: f32) -> f32
Trait Implementations§
source§impl Clone for WorkingTempCurveConfig
impl Clone for WorkingTempCurveConfig
source§fn clone(&self) -> WorkingTempCurveConfig
fn clone(&self) -> WorkingTempCurveConfig
Returns a copy 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 WorkingTempCurveConfig
impl Debug for WorkingTempCurveConfig
source§impl<'de> Deserialize<'de> for WorkingTempCurveConfig
impl<'de> Deserialize<'de> for WorkingTempCurveConfig
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
source§impl PartialEq for WorkingTempCurveConfig
impl PartialEq for WorkingTempCurveConfig
source§fn eq(&self, other: &WorkingTempCurveConfig) -> bool
fn eq(&self, other: &WorkingTempCurveConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WorkingTempCurveConfig
Auto Trait Implementations§
impl RefUnwindSafe for WorkingTempCurveConfig
impl Send for WorkingTempCurveConfig
impl Sync for WorkingTempCurveConfig
impl Unpin for WorkingTempCurveConfig
impl UnwindSafe for WorkingTempCurveConfig
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