pub struct State<M: Model> {
pub input: M::Input,
pub output: M::Output,
}Expand description
Represents a snapshot of the simulation at a specific point in time.
A State pairs:
input: The independent variables, typically user-controlled or time-evolving.output: The dependent variables, computed by the model.
Together, these describe the full state of the system at a given instant.
Fields§
§input: M::Input§output: M::OutputImplementations§
Trait Implementations§
Source§impl<M: PartialOrd + Model> PartialOrd for State<M>
impl<M: PartialOrd + Model> PartialOrd for State<M>
impl<M: Model> Copy for State<M>
impl<M: Model> StructuralPartialEq for State<M>
Auto Trait Implementations§
impl<M> Freeze for State<M>
impl<M> RefUnwindSafe for State<M>
impl<M> Send for State<M>
impl<M> Sync for State<M>
impl<M> Unpin for State<M>
impl<M> UnwindSafe for State<M>
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