pub struct ImmersionHeaterModelPart {
range: RangeInclusive<NaiveTime>,
model: LinearModel,
sensor: Sensor,
}
Fields§
§range: RangeInclusive<NaiveTime>
§model: LinearModel
§sensor: Sensor
Implementations§
source§impl ImmersionHeaterModelPart
impl ImmersionHeaterModelPart
pub fn from_time_points( start: (NaiveTime, f32), end: (NaiveTime, f32), sensor: Sensor ) -> Self
pub fn recommended_temp(&self, time: NaiveTime) -> Option<f32>
pub fn get_sensor(&self) -> &Sensor
Trait Implementations§
source§impl Clone for ImmersionHeaterModelPart
impl Clone for ImmersionHeaterModelPart
source§fn clone(&self) -> ImmersionHeaterModelPart
fn clone(&self) -> ImmersionHeaterModelPart
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 ImmersionHeaterModelPart
impl Debug for ImmersionHeaterModelPart
source§impl<'de> Deserialize<'de> for ImmersionHeaterModelPart
impl<'de> Deserialize<'de> for ImmersionHeaterModelPart
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 ImmersionHeaterModelPart
impl PartialEq for ImmersionHeaterModelPart
source§fn eq(&self, other: &ImmersionHeaterModelPart) -> bool
fn eq(&self, other: &ImmersionHeaterModelPart) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ImmersionHeaterModelPart
Auto Trait Implementations§
impl RefUnwindSafe for ImmersionHeaterModelPart
impl Send for ImmersionHeaterModelPart
impl Sync for ImmersionHeaterModelPart
impl Unpin for ImmersionHeaterModelPart
impl UnwindSafe for ImmersionHeaterModelPart
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