pub struct StateMonitor {
pub source: String,
pub variables: Vec<String>,
pub record_indices: Vec<usize>,
pub dt: f64,
pub data: HashMap<String, (Vec<f64>, Vec<Vec<f64>>)>,
}Expand description
Record state variable over time
Fields§
§source: String§variables: Vec<String>§record_indices: Vec<usize>§dt: f64§data: HashMap<String, (Vec<f64>, Vec<Vec<f64>>)>Recorded values: variable -> (times, values[neuron][time])
Implementations§
Trait Implementations§
Source§impl Clone for StateMonitor
impl Clone for StateMonitor
Source§fn clone(&self) -> StateMonitor
fn clone(&self) -> StateMonitor
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 StateMonitor
impl Debug for StateMonitor
Source§impl<'de> Deserialize<'de> for StateMonitor
impl<'de> Deserialize<'de> for StateMonitor
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
Auto Trait Implementations§
impl Freeze for StateMonitor
impl RefUnwindSafe for StateMonitor
impl Send for StateMonitor
impl Sync for StateMonitor
impl Unpin for StateMonitor
impl UnwindSafe for StateMonitor
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