pub struct Conductance {
pub h: f64,
pub state: ConductanceState,
pub history: ConductanceStateHistoryVec,
}
Expand description
Conductance component
Fields§
§h: f64
Thermal conductance [W/K] between two temperatures
state: ConductanceState
§history: ConductanceStateHistoryVec
Implementations§
Source§impl Conductance
impl Conductance
Sourcepub fn save_state(&mut self)
pub fn save_state(&mut self)
Saves self.state
to self.history
and propagtes to save_state
in
Trait Implementations§
Source§impl BareClone for Conductance
impl BareClone for Conductance
Source§fn bare_clone(&self) -> Self
fn bare_clone(&self) -> Self
Returns a copy
Source§impl Clone for Conductance
impl Clone for Conductance
Source§fn clone(&self) -> Conductance
fn clone(&self) -> Conductance
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 Conductance
impl Debug for Conductance
Source§impl Default for Conductance
impl Default for Conductance
Source§fn default() -> Conductance
fn default() -> Conductance
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Conductance
impl<'de> Deserialize<'de> for Conductance
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 Flow for Conductance
impl Flow for Conductance
Source§impl PartialEq for Conductance
impl PartialEq for Conductance
Source§impl PartialOrd for Conductance
impl PartialOrd for Conductance
Source§impl Serialize for Conductance
impl Serialize for Conductance
impl StructuralPartialEq for Conductance
Auto Trait Implementations§
impl Freeze for Conductance
impl RefUnwindSafe for Conductance
impl Send for Conductance
impl Sync for Conductance
impl Unpin for Conductance
impl UnwindSafe for Conductance
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