pub struct ConductanceStateHistoryVec {
pub q: Vec<f64>,
}
Expand description
Stores history of ConductanceState
Fields§
§q: Vec<f64>
Implementations§
Source§impl ConductanceStateHistoryVec
impl ConductanceStateHistoryVec
Sourcepub fn new() -> ConductanceStateHistoryVec
pub fn new() -> ConductanceStateHistoryVec
Creates new emtpy vec container
Sourcepub fn push(&mut self, value: ConductanceState)
pub fn push(&mut self, value: ConductanceState)
push fields of state to vec fields in history
Sourcepub fn pop(&mut self) -> Option<ConductanceState>
pub fn pop(&mut self) -> Option<ConductanceState>
Remove and return last element as ConductanceState
Trait Implementations§
Source§impl Clone for ConductanceStateHistoryVec
impl Clone for ConductanceStateHistoryVec
Source§fn clone(&self) -> ConductanceStateHistoryVec
fn clone(&self) -> ConductanceStateHistoryVec
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 ConductanceStateHistoryVec
impl Debug for ConductanceStateHistoryVec
Source§impl Default for ConductanceStateHistoryVec
impl Default for ConductanceStateHistoryVec
Source§fn default() -> ConductanceStateHistoryVec
fn default() -> ConductanceStateHistoryVec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConductanceStateHistoryVec
impl<'de> Deserialize<'de> for ConductanceStateHistoryVec
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 PartialOrd for ConductanceStateHistoryVec
impl PartialOrd for ConductanceStateHistoryVec
impl StructuralPartialEq for ConductanceStateHistoryVec
Auto Trait Implementations§
impl Freeze for ConductanceStateHistoryVec
impl RefUnwindSafe for ConductanceStateHistoryVec
impl Send for ConductanceStateHistoryVec
impl Sync for ConductanceStateHistoryVec
impl Unpin for ConductanceStateHistoryVec
impl UnwindSafe for ConductanceStateHistoryVec
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