coulomb 0.5.0

Library for electrolytes and electrostatic interactions
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// Trait for objects with a temperature
pub trait Temperature {
    /// Get the temperature in Kelvin
    fn temperature(&self) -> f64;
    /// Set the temperature in Kelvin.
    ///
    /// The default implementation returns an error.
    fn set_temperature(&mut self, _temperature: f64) -> crate::Result<()> {
        Err(crate::Error::Unsupported("setting the temperature"))
    }
}