pub struct ThermalMassState {
pub temp: f64,
pub dtemp: f64,
}
Expand description
State for tracking temperature of ThermalMass
Fields§
§temp: f64
temperature [°C]
dtemp: f64
derivative of temperature w.r.t. time [°C/s]
Trait Implementations§
Source§impl Clone for ThermalMassState
impl Clone for ThermalMassState
Source§fn clone(&self) -> ThermalMassState
fn clone(&self) -> ThermalMassState
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 ThermalMassState
impl Debug for ThermalMassState
Source§impl Default for ThermalMassState
impl Default for ThermalMassState
Source§fn default() -> ThermalMassState
fn default() -> ThermalMassState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThermalMassState
impl<'de> Deserialize<'de> for ThermalMassState
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 ThermalMassState
impl PartialEq for ThermalMassState
Source§impl PartialOrd for ThermalMassState
impl PartialOrd for ThermalMassState
Source§impl Serialize for ThermalMassState
impl Serialize for ThermalMassState
impl Copy for ThermalMassState
impl StructuralPartialEq for ThermalMassState
Auto Trait Implementations§
impl Freeze for ThermalMassState
impl RefUnwindSafe for ThermalMassState
impl Send for ThermalMassState
impl Sync for ThermalMassState
impl Unpin for ThermalMassState
impl UnwindSafe for ThermalMassState
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> SerdeAPI for Twhere
T: Serialize + for<'a> Deserialize<'a>,
impl<T> SerdeAPI for Twhere
T: Serialize + for<'a> Deserialize<'a>,
Source§fn to_file(&self, filename: &str) -> Result<(), Error>
fn to_file(&self, filename: &str) -> Result<(), Error>
Save current data structure to file. Method adaptively calls serialization methods
dependent on the suffix of the file given as str. Read more
Source§fn from_file(filename: &str) -> Result<Self, Error>where
Self: Sized + for<'de> Deserialize<'de>,
fn from_file(filename: &str) -> Result<Self, Error>where
Self: Sized + for<'de> Deserialize<'de>,
Read from file and return instantiated struct. Method adaptively calls deserialization
methods dependent on the suffix of the file name given as str.
Function returns a dynamic Error Result if it fails. Read more