Struct fastsim_core::params::AdjCoef
source · pub struct AdjCoef {
pub city_intercept: f64,
pub city_slope: f64,
pub hwy_intercept: f64,
pub hwy_slope: f64,
}Fields§
§city_intercept: f64§city_slope: f64§hwy_intercept: f64§hwy_slope: f64Trait Implementations§
source§impl<'de> Deserialize<'de> for AdjCoef
impl<'de> Deserialize<'de> for AdjCoef
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<AdjCoef> for AdjCoef
impl PartialEq<AdjCoef> for AdjCoef
source§impl SerdeAPI for AdjCoef
impl SerdeAPI for AdjCoef
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
for<'de> Self: Sized + Deserialize<'de>,
fn from_file(filename: &str) -> Result<Self, Error>where for<'de> Self: Sized + 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
source§fn to_bincode(&self) -> Vec<u8>
fn to_bincode(&self) -> Vec<u8>
bincode serialization method.
impl StructuralPartialEq for AdjCoef
Auto Trait Implementations§
impl RefUnwindSafe for AdjCoef
impl Send for AdjCoef
impl Sync for AdjCoef
impl Unpin for AdjCoef
impl UnwindSafe for AdjCoef
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