pub struct SystemStateHistoryVec {
pub i: Vec<usize>,
pub time: Vec<f64>,
}
Expand description
Stores history of SystemState
Fields§
§i: Vec<usize>
§time: Vec<f64>
Implementations§
Source§impl SystemStateHistoryVec
impl SystemStateHistoryVec
Sourcepub fn new() -> SystemStateHistoryVec
pub fn new() -> SystemStateHistoryVec
Creates new emtpy vec container
Sourcepub fn push(&mut self, value: SystemState)
pub fn push(&mut self, value: SystemState)
push fields of state to vec fields in history
Sourcepub fn pop(&mut self) -> Option<SystemState>
pub fn pop(&mut self) -> Option<SystemState>
Remove and return last element as SystemState
Trait Implementations§
Source§impl Clone for SystemStateHistoryVec
impl Clone for SystemStateHistoryVec
Source§fn clone(&self) -> SystemStateHistoryVec
fn clone(&self) -> SystemStateHistoryVec
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 SystemStateHistoryVec
impl Debug for SystemStateHistoryVec
Source§impl Default for SystemStateHistoryVec
impl Default for SystemStateHistoryVec
Source§fn default() -> SystemStateHistoryVec
fn default() -> SystemStateHistoryVec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SystemStateHistoryVec
impl<'de> Deserialize<'de> for SystemStateHistoryVec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SystemStateHistoryVec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SystemStateHistoryVec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SystemStateHistoryVec
impl PartialEq for SystemStateHistoryVec
Source§impl PartialOrd for SystemStateHistoryVec
impl PartialOrd for SystemStateHistoryVec
Source§impl Serialize for SystemStateHistoryVec
impl Serialize for SystemStateHistoryVec
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SystemStateHistoryVec
Auto Trait Implementations§
impl Freeze for SystemStateHistoryVec
impl RefUnwindSafe for SystemStateHistoryVec
impl Send for SystemStateHistoryVec
impl Sync for SystemStateHistoryVec
impl Unpin for SystemStateHistoryVec
impl UnwindSafe for SystemStateHistoryVec
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